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