Files
rust/tests/ui/parser/block-no-opening-brace.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

74 lines
2.0 KiB
Plaintext
Raw Normal View History

2020-03-05 02:46:13 +01:00
error: expected `{`, found keyword `let`
--> $DIR/block-no-opening-brace.rs:9:9
2020-03-05 02:46:13 +01:00
|
LL | loop
| ---- while parsing this `loop` expression
LL | let x = 0;
| ^^^ expected `{`
|
2024-11-16 00:22:54 +00:00
help: you might have meant to write this as part of a block
|
LL | { let x = 0; }
| + +
2020-03-05 02:46:13 +01:00
error: expected `{`, found keyword `let`
--> $DIR/block-no-opening-brace.rs:15:9
2020-03-05 02:46:13 +01:00
|
LL | while true
| ----- ---- this `while` condition successfully parsed
| |
| while parsing the body of this `while` expression
LL | let x = 0;
| ^^^ expected `{`
|
2024-11-16 00:22:54 +00:00
help: you might have meant to write this as part of a block
|
LL | { let x = 0; }
| + +
2020-03-05 02:46:13 +01:00
error: expected `{`, found keyword `let`
--> $DIR/block-no-opening-brace.rs:20:9
2020-03-05 02:46:13 +01:00
|
LL | let x = 0;
| ^^^ expected `{`
|
2024-11-16 00:22:54 +00:00
help: you might have meant to write this as part of a block
|
LL | { let x = 0; }
| + +
2020-03-05 02:46:13 +01:00
error: expected expression, found reserved keyword `try`
--> $DIR/block-no-opening-brace.rs:26:5
2020-03-05 02:46:13 +01:00
|
LL | try
| ^^^ expected expression
2020-03-05 02:46:13 +01:00
2024-11-01 18:37:32 -03:00
error: expected one of `move`, `use`, `|`, or `||`, found keyword `let`
--> $DIR/block-no-opening-brace.rs:33:9
2020-03-05 02:46:13 +01:00
|
LL | async
2024-11-01 18:37:32 -03:00
| - expected one of `move`, `use`, `|`, or `||`
LL | let x = 0;
| ^^^ unexpected token
2020-03-05 02:46:13 +01:00
error: expected expression, found keyword `const`
--> $DIR/block-no-opening-brace.rs:38:13
|
LL | let x = const 2;
| ^^^^^ expected expression
error: expected identifier, found keyword `const`
--> $DIR/block-no-opening-brace.rs:45:9
|
LL | const 2 => {}
| ^^^^^ expected identifier, found keyword
error: expected one of `=>`, `if`, or `|`, found `2`
--> $DIR/block-no-opening-brace.rs:45:15
|
LL | const 2 => {}
| ^ expected one of `=>`, `if`, or `|`
error: aborting due to 8 previous errors
2020-03-05 02:46:13 +01:00