]> git.lizzy.rs Git - rust.git/blob - src/test/ui/parser/assoc-static-semantic-fail.stderr
Merge commit '8da837185714cefbb261e93e9846afb11c1dc60e' into sync-rustfmt-subtree
[rust.git] / src / test / ui / parser / assoc-static-semantic-fail.stderr
1 error: associated `static` items are not allowed
2   --> $DIR/assoc-static-semantic-fail.rs:10:5
3    |
4 LL |     static IA: u8 = 0;
5    |     ^^^^^^^^^^^^^^^^^^
6
7 error: associated `static` items are not allowed
8   --> $DIR/assoc-static-semantic-fail.rs:12:5
9    |
10 LL |     static IB: u8;
11    |     ^^^^^^^^^^^^^^
12
13 error: a static item cannot be `default`
14   --> $DIR/assoc-static-semantic-fail.rs:15: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-semantic-fail.rs:15:5
23    |
24 LL |     default static IC: u8 = 0;
25    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
26
27 error: a static item cannot be `default`
28   --> $DIR/assoc-static-semantic-fail.rs:18: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-semantic-fail.rs:18:5
37    |
38 LL |     pub(crate) default static ID: u8;
39    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
40
41 error: associated `static` items are not allowed
42   --> $DIR/assoc-static-semantic-fail.rs:25:5
43    |
44 LL |     static TA: u8 = 0;
45    |     ^^^^^^^^^^^^^^^^^^
46
47 error: associated `static` items are not allowed
48   --> $DIR/assoc-static-semantic-fail.rs:27:5
49    |
50 LL |     static TB: u8;
51    |     ^^^^^^^^^^^^^^
52
53 error: a static item cannot be `default`
54   --> $DIR/assoc-static-semantic-fail.rs:29: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-semantic-fail.rs:29:5
63    |
64 LL |     default static TC: u8 = 0;
65    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
66
67 error: a static item cannot be `default`
68   --> $DIR/assoc-static-semantic-fail.rs:32: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-semantic-fail.rs:32:5
77    |
78 LL |     pub(crate) default static TD: u8;
79    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
80
81 error: associated `static` items are not allowed
82   --> $DIR/assoc-static-semantic-fail.rs:39:5
83    |
84 LL |     static TA: u8 = 0;
85    |     ^^^^^^^^^^^^^^^^^^
86
87 error: associated `static` items are not allowed
88   --> $DIR/assoc-static-semantic-fail.rs:41:5
89    |
90 LL |     static TB: u8;
91    |     ^^^^^^^^^^^^^^
92
93 error: a static item cannot be `default`
94   --> $DIR/assoc-static-semantic-fail.rs:44: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-semantic-fail.rs:44:5
103    |
104 LL |     default static TC: u8 = 0;
105    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
106
107 error: a static item cannot be `default`
108   --> $DIR/assoc-static-semantic-fail.rs:47: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-semantic-fail.rs:47:5
117    |
118 LL |     pub default static TD: u8;
119    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^
120
121 error: associated constant in `impl` without body
122   --> $DIR/assoc-static-semantic-fail.rs:12:5
123    |
124 LL |     static IB: u8;
125    |     ^^^^^^^^^^^^^-
126    |                  |
127    |                  help: provide a definition for the constant: `= <expr>;`
128
129 error: associated constant in `impl` without body
130   --> $DIR/assoc-static-semantic-fail.rs:18:5
131    |
132 LL |     pub(crate) default static ID: u8;
133    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
134    |                                     |
135    |                                     help: provide a definition for the constant: `= <expr>;`
136
137 error[E0449]: unnecessary visibility qualifier
138   --> $DIR/assoc-static-semantic-fail.rs:32:5
139    |
140 LL |     pub(crate) default static TD: u8;
141    |     ^^^^^^^^^^
142
143 error: associated constant in `impl` without body
144   --> $DIR/assoc-static-semantic-fail.rs:41:5
145    |
146 LL |     static TB: u8;
147    |     ^^^^^^^^^^^^^-
148    |                  |
149    |                  help: provide a definition for the constant: `= <expr>;`
150
151 error: associated constant in `impl` without body
152   --> $DIR/assoc-static-semantic-fail.rs:47:5
153    |
154 LL |     pub default static TD: u8;
155    |     ^^^^^^^^^^^^^^^^^^^^^^^^^-
156    |                              |
157    |                              help: provide a definition for the constant: `= <expr>;`
158
159 error[E0449]: unnecessary visibility qualifier
160   --> $DIR/assoc-static-semantic-fail.rs:47:5
161    |
162 LL |     pub default static TD: u8;
163    |     ^^^ `pub` not permitted here because it's implied
164
165 warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
166   --> $DIR/assoc-static-semantic-fail.rs:3:12
167    |
168 LL | #![feature(specialization)]
169    |            ^^^^^^^^^^^^^^
170    |
171    = note: `#[warn(incomplete_features)]` on by default
172    = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
173    = help: consider using `min_specialization` instead, which is more stable and complete
174
175 error: aborting due to 24 previous errors; 1 warning emitted
176
177 For more information about this error, try `rustc --explain E0449`.