]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/label-is-actually-char.stderr
Merge commit '598f0909568a51de8a2d1148f55a644fd8dffad0' into sync_cg_clif-2023-01-24
[rust.git] / tests / ui / parser / label-is-actually-char.stderr
1 error: expected `while`, `for`, `loop` or `{` after a label
2   --> $DIR/label-is-actually-char.rs:2:15
3    |
4 LL |     let c = 'a;
5    |               ^ expected `while`, `for`, `loop` or `{` after a label
6    |
7 help: add `'` to close the char literal
8    |
9 LL |     let c = 'a';
10    |               +
11
12 error: unexpected token: `'b`
13   --> $DIR/label-is-actually-char.rs:6:15
14    |
15 LL |         'a'..='b => {}
16    |               ^^
17    |
18 help: add `'` to close the char literal
19    |
20 LL |         'a'..='b' => {}
21    |                 +
22
23 error: expected `while`, `for`, `loop` or `{` after a label
24   --> $DIR/label-is-actually-char.rs:11:16
25    |
26 LL |     let x = ['a, 'b];
27    |                ^ expected `while`, `for`, `loop` or `{` after a label
28    |
29 help: add `'` to close the char literal
30    |
31 LL |     let x = ['a', 'b];
32    |                +
33
34 error: expected `while`, `for`, `loop` or `{` after a label
35   --> $DIR/label-is-actually-char.rs:11:20
36    |
37 LL |     let x = ['a, 'b];
38    |                    ^ expected `while`, `for`, `loop` or `{` after a label
39    |
40 help: add `'` to close the char literal
41    |
42 LL |     let x = ['a, 'b'];
43    |                    +
44
45 error: aborting due to 4 previous errors
46