]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/assoc-static-syntactic-fail.stderr
Merge commit 'c4416f20dcaec5d93077f72470e83e150fb923b1' into sync-rustfmt
[rust.git] / src / test / ui / parser / assoc-static-syntactic-fail.stderr
1 error: associated `static` items are not allowed
2   --> $DIR/assoc-static-syntactic-fail.rs:7:5
3    |
4 LL |     static IA: u8 = 0;
5    |     ^^^^^^^^^^^^^^^^^^
6
7 error: associated `static` items are not allowed
8   --> $DIR/assoc-static-syntactic-fail.rs:8:5
9    |
10 LL |     static IB: u8;
11    |     ^^^^^^^^^^^^^^
12
13 error: a static item cannot be `default`
14   --> $DIR/assoc-static-syntactic-fail.rs:9:5
15    |
16 LL |     default static IC: u8 = 0;
17    |     ^^^^^^^ `default` because of this
18    |
19    = note: only associated `fn`, `const`, and `type` items can be `default`
20
21 error: associated `static` items are not allowed
22   --> $DIR/assoc-static-syntactic-fail.rs:9:5
23    |
24 LL |     default static IC: u8 = 0;
25    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
26
27 error: a static item cannot be `default`
28   --> $DIR/assoc-static-syntactic-fail.rs:11:16
29    |
30 LL |     pub(crate) default static ID: u8;
31    |                ^^^^^^^ `default` because of this
32    |
33    = note: only associated `fn`, `const`, and `type` items can be `default`
34
35 error: associated `static` items are not allowed
36   --> $DIR/assoc-static-syntactic-fail.rs:11:5
37    |
38 LL |     pub(crate) default static ID: u8;
39    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40
41 error: associated `static` items are not allowed
42   --> $DIR/assoc-static-syntactic-fail.rs:17:5
43    |
44 LL |     static TA: u8 = 0;
45    |     ^^^^^^^^^^^^^^^^^^
46
47 error: associated `static` items are not allowed
48   --> $DIR/assoc-static-syntactic-fail.rs:18:5
49    |
50 LL |     static TB: u8;
51    |     ^^^^^^^^^^^^^^
52
53 error: a static item cannot be `default`
54   --> $DIR/assoc-static-syntactic-fail.rs:19:5
55    |
56 LL |     default static TC: u8 = 0;
57    |     ^^^^^^^ `default` because of this
58    |
59    = note: only associated `fn`, `const`, and `type` items can be `default`
60
61 error: associated `static` items are not allowed
62   --> $DIR/assoc-static-syntactic-fail.rs:19:5
63    |
64 LL |     default static TC: u8 = 0;
65    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
66
67 error: a static item cannot be `default`
68   --> $DIR/assoc-static-syntactic-fail.rs:21:16
69    |
70 LL |     pub(crate) default static TD: u8;
71    |                ^^^^^^^ `default` because of this
72    |
73    = note: only associated `fn`, `const`, and `type` items can be `default`
74
75 error: associated `static` items are not allowed
76   --> $DIR/assoc-static-syntactic-fail.rs:21:5
77    |
78 LL |     pub(crate) default static TD: u8;
79    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
80
81 error: associated `static` items are not allowed
82   --> $DIR/assoc-static-syntactic-fail.rs:27:5
83    |
84 LL |     static TA: u8 = 0;
85    |     ^^^^^^^^^^^^^^^^^^
86
87 error: associated `static` items are not allowed
88   --> $DIR/assoc-static-syntactic-fail.rs:28:5
89    |
90 LL |     static TB: u8;
91    |     ^^^^^^^^^^^^^^
92
93 error: a static item cannot be `default`
94   --> $DIR/assoc-static-syntactic-fail.rs:29:5
95    |
96 LL |     default static TC: u8 = 0;
97    |     ^^^^^^^ `default` because of this
98    |
99    = note: only associated `fn`, `const`, and `type` items can be `default`
100
101 error: associated `static` items are not allowed
102   --> $DIR/assoc-static-syntactic-fail.rs:29:5
103    |
104 LL |     default static TC: u8 = 0;
105    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
106
107 error: a static item cannot be `default`
108   --> $DIR/assoc-static-syntactic-fail.rs:31:9
109    |
110 LL |     pub default static TD: u8;
111    |         ^^^^^^^ `default` because of this
112    |
113    = note: only associated `fn`, `const`, and `type` items can be `default`
114
115 error: associated `static` items are not allowed
116   --> $DIR/assoc-static-syntactic-fail.rs:31:5
117    |
118 LL |     pub default static TD: u8;
119    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
120
121 error: aborting due to 18 previous errors
122