summaryrefslogtreecommitdiffstats
path: root/src/test/ui/parser/assoc-static-semantic-fail.stderr
blob: 8a74f49b95cce28d4f21eaef128b8878e97c3b7b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
error: associated `static` items are not allowed
  --> $DIR/assoc-static-semantic-fail.rs:10:5
   |
LL |     static IA: u8 = 0;
   |     ^^^^^^^^^^^^^^^^^^

error: associated `static` items are not allowed
  --> $DIR/assoc-static-semantic-fail.rs:12:5
   |
LL |     static IB: u8;
   |     ^^^^^^^^^^^^^^

error: a static item cannot be `default`
  --> $DIR/assoc-static-semantic-fail.rs:15:5
   |
LL |     default static IC: u8 = 0;
   |     ^^^^^^^ `default` because of this
   |
   = note: only associated `fn`, `const`, and `type` items can be `default`

error: associated `static` items are not allowed
  --> $DIR/assoc-static-semantic-fail.rs:15:5
   |
LL |     default static IC: u8 = 0;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^

error: a static item cannot be `default`
  --> $DIR/assoc-static-semantic-fail.rs:18:16
   |
LL |     pub(crate) default static ID: u8;
   |                ^^^^^^^ `default` because of this
   |
   = note: only associated `fn`, `const`, and `type` items can be `default`

error: associated `static` items are not allowed
  --> $DIR/assoc-static-semantic-fail.rs:18:5
   |
LL |     pub(crate) default static ID: u8;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: associated `static` items are not allowed
  --> $DIR/assoc-static-semantic-fail.rs:25:5
   |
LL |     static TA: u8 = 0;
   |     ^^^^^^^^^^^^^^^^^^

error: associated `static` items are not allowed
  --> $DIR/assoc-static-semantic-fail.rs:27:5
   |
LL |     static TB: u8;
   |     ^^^^^^^^^^^^^^

error: a static item cannot be `default`
  --> $DIR/assoc-static-semantic-fail.rs:29:5
   |
LL |     default static TC: u8 = 0;
   |     ^^^^^^^ `default` because of this
   |
   = note: only associated `fn`, `const`, and `type` items can be `default`

error: associated `static` items are not allowed
  --> $DIR/assoc-static-semantic-fail.rs:29:5
   |
LL |     default static TC: u8 = 0;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^

error: a static item cannot be `default`
  --> $DIR/assoc-static-semantic-fail.rs:32:16
   |
LL |     pub(crate) default static TD: u8;
   |                ^^^^^^^ `default` because of this
   |
   = note: only associated `fn`, `const`, and `type` items can be `default`

error: associated `static` items are not allowed
  --> $DIR/assoc-static-semantic-fail.rs:32:5
   |
LL |     pub(crate) default static TD: u8;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

error: associated `static` items are not allowed
  --> $DIR/assoc-static-semantic-fail.rs:39:5
   |
LL |     static TA: u8 = 0;
   |     ^^^^^^^^^^^^^^^^^^

error: associated `static` items are not allowed
  --> $DIR/assoc-static-semantic-fail.rs:41:5
   |
LL |     static TB: u8;
   |     ^^^^^^^^^^^^^^

error: a static item cannot be `default`
  --> $DIR/assoc-static-semantic-fail.rs:44:5
   |
LL |     default static TC: u8 = 0;
   |     ^^^^^^^ `default` because of this
   |
   = note: only associated `fn`, `const`, and `type` items can be `default`

error: associated `static` items are not allowed
  --> $DIR/assoc-static-semantic-fail.rs:44:5
   |
LL |     default static TC: u8 = 0;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^

error: a static item cannot be `default`
  --> $DIR/assoc-static-semantic-fail.rs:47:9
   |
LL |     pub default static TD: u8;
   |         ^^^^^^^ `default` because of this
   |
   = note: only associated `fn`, `const`, and `type` items can be `default`

error: associated `static` items are not allowed
  --> $DIR/assoc-static-semantic-fail.rs:47:5
   |
LL |     pub default static TD: u8;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^

error: associated constant in `impl` without body
  --> $DIR/assoc-static-semantic-fail.rs:12:5
   |
LL |     static IB: u8;
   |     ^^^^^^^^^^^^^-
   |                  |
   |                  help: provide a definition for the constant: `= <expr>;`

error: associated constant in `impl` without body
  --> $DIR/assoc-static-semantic-fail.rs:18:5
   |
LL |     pub(crate) default static ID: u8;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-
   |                                     |
   |                                     help: provide a definition for the constant: `= <expr>;`

error[E0449]: unnecessary visibility qualifier
  --> $DIR/assoc-static-semantic-fail.rs:32:5
   |
LL |     pub(crate) default static TD: u8;
   |     ^^^^^^^^^^

error: associated constant in `impl` without body
  --> $DIR/assoc-static-semantic-fail.rs:41:5
   |
LL |     static TB: u8;
   |     ^^^^^^^^^^^^^-
   |                  |
   |                  help: provide a definition for the constant: `= <expr>;`

error: associated constant in `impl` without body
  --> $DIR/assoc-static-semantic-fail.rs:47:5
   |
LL |     pub default static TD: u8;
   |     ^^^^^^^^^^^^^^^^^^^^^^^^^-
   |                              |
   |                              help: provide a definition for the constant: `= <expr>;`

error[E0449]: unnecessary visibility qualifier
  --> $DIR/assoc-static-semantic-fail.rs:47:5
   |
LL |     pub default static TD: u8;
   |     ^^^ `pub` not permitted here because it's implied

warning: the feature `specialization` is incomplete and may not be safe to use and/or cause compiler crashes
  --> $DIR/assoc-static-semantic-fail.rs:3:12
   |
LL | #![feature(specialization)]
   |            ^^^^^^^^^^^^^^
   |
   = note: see issue #31844 <https://github.com/rust-lang/rust/issues/31844> for more information
   = help: consider using `min_specialization` instead, which is more stable and complete
   = note: `#[warn(incomplete_features)]` on by default

error: aborting due to 24 previous errors; 1 warning emitted

For more information about this error, try `rustc --explain E0449`.