summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/underscore_item_not_const.stderr
blob: 0bc7642dd196471fe0bf6459c848cc31fc6c6eb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
error: expected identifier, found reserved identifier `_`
  --> $DIR/underscore_item_not_const.rs:3:8
   |
LL | static _: () = ();
   |        ^ expected identifier, found reserved identifier

error: expected identifier, found reserved identifier `_`
  --> $DIR/underscore_item_not_const.rs:4:8
   |
LL | struct _();
   |        ^ expected identifier, found reserved identifier

error: expected identifier, found reserved identifier `_`
  --> $DIR/underscore_item_not_const.rs:5:6
   |
LL | enum _ {}
   |      ^ expected identifier, found reserved identifier

error: expected identifier, found reserved identifier `_`
  --> $DIR/underscore_item_not_const.rs:6:4
   |
LL | fn _() {}
   |    ^ expected identifier, found reserved identifier

error: expected identifier, found reserved identifier `_`
  --> $DIR/underscore_item_not_const.rs:7:5
   |
LL | mod _ {}
   |     ^ expected identifier, found reserved identifier

error: expected identifier, found reserved identifier `_`
  --> $DIR/underscore_item_not_const.rs:8:6
   |
LL | type _ = ();
   |      ^ expected identifier, found reserved identifier

error: expected identifier, found reserved identifier `_`
  --> $DIR/underscore_item_not_const.rs:9:5
   |
LL | use _;
   |     ^ expected identifier, found reserved identifier

error: expected identifier, found reserved identifier `_`
  --> $DIR/underscore_item_not_const.rs:10:5
   |
LL | use _ as g;
   |     ^ expected identifier, found reserved identifier

error: expected identifier, found reserved identifier `_`
  --> $DIR/underscore_item_not_const.rs:11:7
   |
LL | trait _ {}
   |       ^ expected identifier, found reserved identifier

error: expected identifier, found reserved identifier `_`
  --> $DIR/underscore_item_not_const.rs:12:7
   |
LL | trait _ = Copy;
   |       ^ expected identifier, found reserved identifier

error: expected identifier, found reserved identifier `_`
  --> $DIR/underscore_item_not_const.rs:13:14
   |
LL | macro_rules! _ { () => {} }
   |              ^ expected identifier, found reserved identifier

error: expected one of `!` or `::`, found reserved identifier `_`
  --> $DIR/underscore_item_not_const.rs:14:7
   |
LL | union _ { f: u8 }
   |       ^ expected one of `!` or `::`

error: aborting due to 12 previous errors