1 error: associated `static` items are not allowed
2 --> $DIR/assoc-static-semantic-fail.rs:10:5
4 LL | static IA: u8 = 0;
7 error: associated `static` items are not allowed
8 --> $DIR/assoc-static-semantic-fail.rs:12:5
13 error: a static item cannot be `default`
14 --> $DIR/assoc-static-semantic-fail.rs:15:5
16 LL | default static IC: u8 = 0;
17 | ^^^^^^^ `default` because of this
19 = note: only associated `fn`, `const`, and `type` items can be `default`
21 error: associated `static` items are not allowed
22 --> $DIR/assoc-static-semantic-fail.rs:15:5
24 LL | default static IC: u8 = 0;
25 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
27 error: a static item cannot be `default`
28 --> $DIR/assoc-static-semantic-fail.rs:18:16
30 LL | pub(crate) default static ID: u8;
31 | ^^^^^^^ `default` because of this
33 = note: only associated `fn`, `const`, and `type` items can be `default`
35 error: associated `static` items are not allowed
36 --> $DIR/assoc-static-semantic-fail.rs:18:5
38 LL | pub(crate) default static ID: u8;
39 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41 error: associated `static` items are not allowed
42 --> $DIR/assoc-static-semantic-fail.rs:25:5
44 LL | static TA: u8 = 0;
47 error: associated `static` items are not allowed
48 --> $DIR/assoc-static-semantic-fail.rs:27:5
53 error: a static item cannot be `default`
54 --> $DIR/assoc-static-semantic-fail.rs:29:5
56 LL | default static TC: u8 = 0;
57 | ^^^^^^^ `default` because of this
59 = note: only associated `fn`, `const`, and `type` items can be `default`
61 error: associated `static` items are not allowed
62 --> $DIR/assoc-static-semantic-fail.rs:29:5
64 LL | default static TC: u8 = 0;
65 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
67 error: a static item cannot be `default`
68 --> $DIR/assoc-static-semantic-fail.rs:32:16
70 LL | pub(crate) default static TD: u8;
71 | ^^^^^^^ `default` because of this
73 = note: only associated `fn`, `const`, and `type` items can be `default`
75 error: associated `static` items are not allowed
76 --> $DIR/assoc-static-semantic-fail.rs:32:5
78 LL | pub(crate) default static TD: u8;
79 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
81 error: associated `static` items are not allowed
82 --> $DIR/assoc-static-semantic-fail.rs:39:5
84 LL | static TA: u8 = 0;
87 error: associated `static` items are not allowed
88 --> $DIR/assoc-static-semantic-fail.rs:41:5
93 error: a static item cannot be `default`
94 --> $DIR/assoc-static-semantic-fail.rs:44:5
96 LL | default static TC: u8 = 0;
97 | ^^^^^^^ `default` because of this
99 = note: only associated `fn`, `const`, and `type` items can be `default`
101 error: associated `static` items are not allowed
102 --> $DIR/assoc-static-semantic-fail.rs:44:5
104 LL | default static TC: u8 = 0;
105 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
107 error: a static item cannot be `default`
108 --> $DIR/assoc-static-semantic-fail.rs:47:9
110 LL | pub default static TD: u8;
111 | ^^^^^^^ `default` because of this
113 = note: only associated `fn`, `const`, and `type` items can be `default`
115 error: associated `static` items are not allowed
116 --> $DIR/assoc-static-semantic-fail.rs:47:5
118 LL | pub default static TD: u8;
119 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
121 error: associated constant in `impl` without body
122 --> $DIR/assoc-static-semantic-fail.rs:12:5
127 | help: provide a definition for the constant: `= <expr>;`
129 error: associated constant in `impl` without body
130 --> $DIR/assoc-static-semantic-fail.rs:18:5
132 LL | pub(crate) default static ID: u8;
133 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
135 | help: provide a definition for the constant: `= <expr>;`
137 error[E0449]: unnecessary visibility qualifier
138 --> $DIR/assoc-static-semantic-fail.rs:32:5
140 LL | pub(crate) default static TD: u8;
143 error: associated constant in `impl` without body
144 --> $DIR/assoc-static-semantic-fail.rs:41:5
149 | help: provide a definition for the constant: `= <expr>;`
151 error: associated constant in `impl` without body
152 --> $DIR/assoc-static-semantic-fail.rs:47:5
154 LL | pub default static TD: u8;
155 | ^^^^^^^^^^^^^^^^^^^^^^^^^-
157 | help: provide a definition for the constant: `= <expr>;`
159 error[E0449]: unnecessary visibility qualifier
160 --> $DIR/assoc-static-semantic-fail.rs:47:5
162 LL | pub default static TD: u8;
163 | ^^^ `pub` not permitted here because it's implied
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
168 LL | #![feature(specialization)]
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
175 error: aborting due to 24 previous errors; 1 warning emitted
177 For more information about this error, try `rustc --explain E0449`.