]> git.lizzy.rs Git - rust.git/blob - tests/ui/parser/underscore_item_not_const.stderr
Rollup merge of #106798 - scottmcm:signum-via-cmp, r=Mark-Simulacrum
[rust.git] / tests / ui / parser / underscore_item_not_const.stderr
1 error: expected identifier, found reserved identifier `_`
2   --> $DIR/underscore_item_not_const.rs:3:8
3    |
4 LL | static _: () = ();
5    |        ^ expected identifier, found reserved identifier
6
7 error: expected identifier, found reserved identifier `_`
8   --> $DIR/underscore_item_not_const.rs:4:8
9    |
10 LL | struct _();
11    |        ^ expected identifier, found reserved identifier
12
13 error: expected identifier, found reserved identifier `_`
14   --> $DIR/underscore_item_not_const.rs:5:6
15    |
16 LL | enum _ {}
17    |      ^ expected identifier, found reserved identifier
18
19 error: expected identifier, found reserved identifier `_`
20   --> $DIR/underscore_item_not_const.rs:6:4
21    |
22 LL | fn _() {}
23    |    ^ expected identifier, found reserved identifier
24
25 error: expected identifier, found reserved identifier `_`
26   --> $DIR/underscore_item_not_const.rs:7:5
27    |
28 LL | mod _ {}
29    |     ^ expected identifier, found reserved identifier
30
31 error: expected identifier, found reserved identifier `_`
32   --> $DIR/underscore_item_not_const.rs:8:6
33    |
34 LL | type _ = ();
35    |      ^ expected identifier, found reserved identifier
36
37 error: expected identifier, found reserved identifier `_`
38   --> $DIR/underscore_item_not_const.rs:9:5
39    |
40 LL | use _;
41    |     ^ expected identifier, found reserved identifier
42
43 error: expected identifier, found reserved identifier `_`
44   --> $DIR/underscore_item_not_const.rs:10:5
45    |
46 LL | use _ as g;
47    |     ^ expected identifier, found reserved identifier
48
49 error: expected identifier, found reserved identifier `_`
50   --> $DIR/underscore_item_not_const.rs:11:7
51    |
52 LL | trait _ {}
53    |       ^ expected identifier, found reserved identifier
54
55 error: expected identifier, found reserved identifier `_`
56   --> $DIR/underscore_item_not_const.rs:12:7
57    |
58 LL | trait _ = Copy;
59    |       ^ expected identifier, found reserved identifier
60
61 error: expected identifier, found reserved identifier `_`
62   --> $DIR/underscore_item_not_const.rs:13:14
63    |
64 LL | macro_rules! _ { () => {} }
65    |              ^ expected identifier, found reserved identifier
66
67 error: expected one of `!` or `::`, found reserved identifier `_`
68   --> $DIR/underscore_item_not_const.rs:14:7
69    |
70 LL | union _ { f: u8 }
71    |       ^ expected one of `!` or `::`
72
73 error: aborting due to 12 previous errors
74