summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/block-no-opening-brace.stderr
blob: f232f480ce9c2595647092d338c572a41f45286b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
error: expected `{`, found keyword `let`
  --> $DIR/block-no-opening-brace.rs:9:9
   |
LL |     loop
   |     ---- while parsing this `loop` expression
LL |         let x = 0;
   |         ^^^ expected `{`
   |
help: try placing this code inside a block
   |
LL |         { let x = 0; }
   |         +            +

error: expected `{`, found keyword `let`
  --> $DIR/block-no-opening-brace.rs:15:9
   |
LL |     while true
   |     ----- ---- this `while` condition successfully parsed
   |     |
   |     while parsing the body of this `while` expression
LL |         let x = 0;
   |         ^^^ expected `{`
   |
help: try placing this code inside a block
   |
LL |         { let x = 0; }
   |         +            +

error: expected `{`, found keyword `let`
  --> $DIR/block-no-opening-brace.rs:20:9
   |
LL |         let x = 0;
   |         ^^^ expected `{`
   |
help: try placing this code inside a block
   |
LL |         { let x = 0; }
   |         +            +

error: expected expression, found reserved keyword `try`
  --> $DIR/block-no-opening-brace.rs:24:5
   |
LL |     try
   |     ^^^ expected expression

error: expected one of `move`, `|`, or `||`, found keyword `let`
  --> $DIR/block-no-opening-brace.rs:30:9
   |
LL |     async
   |          - expected one of `move`, `|`, or `||`
LL |         let x = 0;
   |         ^^^ unexpected token

error: aborting due to 5 previous errors