@@ -34,30 +34,12 @@ error: associated `static` items are not allowed
34
34
LL | static TB: u8;
35
35
| ^^^^^^^^^^^^^^
36
36
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
-
43
37
error: associated `static` items are not allowed
44
38
--> $DIR/assoc-static-semantic-fail.rs:24:5
45
39
|
46
40
LL | default static TC: u8 = 0;
47
41
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
48
42
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
-
61
43
error: associated `static` items are not allowed
62
44
--> $DIR/assoc-static-semantic-fail.rs:27:5
63
45
|
@@ -82,17 +64,35 @@ error: associated `static` items are not allowed
82
64
LL | default static TC: u8 = 0;
83
65
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
84
66
85
- error[E0449]: unnecessary visibility qualifier
67
+ error: associated `static` items are not allowed
86
68
--> $DIR/assoc-static-semantic-fail.rs:40:5
87
69
|
88
70
LL | pub default static TD: u8;
89
- | ^^^ `pub` not permitted here because it's implied
71
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^
90
72
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
92
92
--> $DIR/assoc-static-semantic-fail.rs:40:5
93
93
|
94
94
LL | pub default static TD: u8;
95
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^
95
+ | ^^^ `pub` not permitted here because it's implied
96
96
97
97
error: aborting due to 16 previous errors
98
98
0 commit comments