@@ -34,30 +34,12 @@ error: associated `static` items are not allowed
3434LL | static TB: u8;
3535 | ^^^^^^^^^^^^^^
3636
37- error: `default` is only allowed on items in `impl` definitions
38- --> $DIR/assoc-static-semantic-fail.rs:24:5
39- |
40- LL | default static TC: u8 = 0;
41- | ^^^^^^^^^^^^^^^^^^^^^^^^^^
42-
4337error: associated `static` items are not allowed
4438 --> $DIR/assoc-static-semantic-fail.rs:24:5
4539 |
4640LL | default static TC: u8 = 0;
4741 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
4842
49- error: `default` is only allowed on items in `impl` definitions
50- --> $DIR/assoc-static-semantic-fail.rs:27:5
51- |
52- LL | pub(crate) default static TD: u8;
53- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54-
55- error[E0449]: unnecessary visibility qualifier
56- --> $DIR/assoc-static-semantic-fail.rs:27:5
57- |
58- LL | pub(crate) default static TD: u8;
59- | ^^^^^^^^^^
60-
6143error: associated `static` items are not allowed
6244 --> $DIR/assoc-static-semantic-fail.rs:27:5
6345 |
@@ -82,17 +64,35 @@ error: associated `static` items are not allowed
8264LL | default static TC: u8 = 0;
8365 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
8466
85- error[E0449]: unnecessary visibility qualifier
67+ error: associated `static` items are not allowed
8668 --> $DIR/assoc-static-semantic-fail.rs:40:5
8769 |
8870LL | pub default static TD: u8;
89- | ^^^ `pub` not permitted here because it's implied
71+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
9072
91- error: associated `static` items are not allowed
73+ error: `default` is only allowed on items in `impl` definitions
74+ --> $DIR/assoc-static-semantic-fail.rs:24:5
75+ |
76+ LL | default static TC: u8 = 0;
77+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
78+
79+ error: `default` is only allowed on items in `impl` definitions
80+ --> $DIR/assoc-static-semantic-fail.rs:27:5
81+ |
82+ LL | pub(crate) default static TD: u8;
83+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
84+
85+ error[E0449]: unnecessary visibility qualifier
86+ --> $DIR/assoc-static-semantic-fail.rs:27:5
87+ |
88+ LL | pub(crate) default static TD: u8;
89+ | ^^^^^^^^^^
90+
91+ error[E0449]: unnecessary visibility qualifier
9292 --> $DIR/assoc-static-semantic-fail.rs:40:5
9393 |
9494LL | pub default static TD: u8;
95- | ^^^^^^^^^^^^^^^^^^^^^^^^^^
95+ | ^^^ `pub` not permitted here because it's implied
9696
9797error: aborting due to 16 previous errors
9898
0 commit comments