fork/rust

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

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

master
1.4 KiB66 linesraw
1error: expected pattern, found `=`
2  --> $DIR/keyword-box-as-identifier.rs:2:13
3   |
4LL |     let box = 0;
5   |             ^
6   |
7note: `box` is a reserved keyword
8  --> $DIR/keyword-box-as-identifier.rs:2:9
9   |
10LL |     let box = 0;
11   |         ^^^
12help: escape `box` to use it as an identifier
13   |
14LL |     let r#box = 0;
15   |         ++
16
17error: expected pattern, found `:`
18  --> $DIR/keyword-box-as-identifier.rs:4:12
19   |
20LL |     let box: bool;
21   |            ^
22   |
23note: `box` is a reserved keyword
24  --> $DIR/keyword-box-as-identifier.rs:4:9
25   |
26LL |     let box: bool;
27   |         ^^^
28help: escape `box` to use it as an identifier
29   |
30LL |     let r#box: bool;
31   |         ++
32
33error: expected pattern, found `=`
34  --> $DIR/keyword-box-as-identifier.rs:6:17
35   |
36LL |     let mut box = 0;
37   |                 ^
38   |
39note: `box` is a reserved keyword
40  --> $DIR/keyword-box-as-identifier.rs:6:13
41   |
42LL |     let mut box = 0;
43   |             ^^^
44help: escape `box` to use it as an identifier
45   |
46LL |     let mut r#box = 0;
47   |             ++
48
49error: expected pattern, found `,`
50  --> $DIR/keyword-box-as-identifier.rs:8:13
51   |
52LL |     let (box,) = (0,);
53   |             ^
54   |
55note: `box` is a reserved keyword
56  --> $DIR/keyword-box-as-identifier.rs:8:10
57   |
58LL |     let (box,) = (0,);
59   |          ^^^
60help: escape `box` to use it as an identifier
61   |
62LL |     let (r#box,) = (0,);
63   |          ++
64
65error: aborting due to 4 previous errors
66