about summary refs log tree commit diff
path: root/tests/ui/parser/block-no-opening-brace.stderr
blob: cf9eeba573dc845bb8e3342fbd184a82ed62c863 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
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: you might have meant to write this as part of 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: you might have meant to write this as part of 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: you might have meant to write this as part of a block
   |
LL |         { let x = 0; }
   |         +            +

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

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

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