fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

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