Files
rust/tests/ui/move-expr/parse-ambiguity-errors.stderr
2026-09-09 01:31:19 +09:00

15 lines
430 B
Plaintext

error: expected one of `async`, `|`, or `||`, found `[`
--> $DIR/parse-ambiguity-errors.rs:12:17
|
LL | let _ = move[x] || y;
| ^ expected one of `async`, `|`, or `||`
error: `move(expr)` is only supported in closures, `async`, `gen`, and `async gen` blocks
--> $DIR/parse-ambiguity-errors.rs:7:13
|
LL | let _ = move(x) || y;
| ^^^^
error: aborting due to 2 previous errors