1
1
error: missing angle brackets in associated item path
2
- --> $DIR/bad-assoc-ty.rs:1 :10
2
+ --> $DIR/bad-assoc-ty.rs:5 :10
3
3
|
4
4
LL | type A = [u8; 4]::AssocTy;
5
5
| ^^^^^^^
@@ -10,7 +10,7 @@ LL | type A = <[u8; 4]>::AssocTy;
10
10
| + +
11
11
12
12
error: missing angle brackets in associated item path
13
- --> $DIR/bad-assoc-ty.rs:5 :10
13
+ --> $DIR/bad-assoc-ty.rs:9 :10
14
14
|
15
15
LL | type B = [u8]::AssocTy;
16
16
| ^^^^
@@ -21,7 +21,7 @@ LL | type B = <[u8]>::AssocTy;
21
21
| + +
22
22
23
23
error: missing angle brackets in associated item path
24
- --> $DIR/bad-assoc-ty.rs:9 :10
24
+ --> $DIR/bad-assoc-ty.rs:13 :10
25
25
|
26
26
LL | type C = (u8)::AssocTy;
27
27
| ^^^^
@@ -32,7 +32,7 @@ LL | type C = <(u8)>::AssocTy;
32
32
| + +
33
33
34
34
error: missing angle brackets in associated item path
35
- --> $DIR/bad-assoc-ty.rs:13 :10
35
+ --> $DIR/bad-assoc-ty.rs:17 :10
36
36
|
37
37
LL | type D = (u8, u8)::AssocTy;
38
38
| ^^^^^^^^
@@ -43,7 +43,7 @@ LL | type D = <(u8, u8)>::AssocTy;
43
43
| + +
44
44
45
45
error: missing angle brackets in associated item path
46
- --> $DIR/bad-assoc-ty.rs:17 :10
46
+ --> $DIR/bad-assoc-ty.rs:21 :10
47
47
|
48
48
LL | type E = _::AssocTy;
49
49
| ^
@@ -54,7 +54,7 @@ LL | type E = <_>::AssocTy;
54
54
| + +
55
55
56
56
error: missing angle brackets in associated item path
57
- --> $DIR/bad-assoc-ty.rs:21 :19
57
+ --> $DIR/bad-assoc-ty.rs:25 :19
58
58
|
59
59
LL | type F = &'static (u8)::AssocTy;
60
60
| ^^^^
@@ -65,7 +65,7 @@ LL | type F = &'static <(u8)>::AssocTy;
65
65
| + +
66
66
67
67
error: missing angle brackets in associated item path
68
- --> $DIR/bad-assoc-ty.rs:27 :10
68
+ --> $DIR/bad-assoc-ty.rs:31 :10
69
69
|
70
70
LL | type G = dyn 'static + (Send)::AssocTy;
71
71
| ^^^^^^^^^^^^^^^^^^^^
@@ -76,7 +76,7 @@ LL | type G = <dyn 'static + (Send)>::AssocTy;
76
76
| + +
77
77
78
78
error: missing angle brackets in associated item path
79
- --> $DIR/bad-assoc-ty.rs:46 :10
79
+ --> $DIR/bad-assoc-ty.rs:51 :10
80
80
|
81
81
LL | type I = ty!()::AssocTy;
82
82
| ^^^^^
@@ -87,7 +87,7 @@ LL | type I = <ty!()>::AssocTy;
87
87
| + +
88
88
89
89
error: missing angle brackets in associated item path
90
- --> $DIR/bad-assoc-ty.rs:39 :19
90
+ --> $DIR/bad-assoc-ty.rs:44 :19
91
91
|
92
92
LL | ($ty: ty) => ($ty::AssocTy);
93
93
| ^^^
@@ -102,7 +102,7 @@ LL | ($ty: ty) => (<$ty>::AssocTy);
102
102
| + +
103
103
104
104
error[E0223]: ambiguous associated type
105
- --> $DIR/bad-assoc-ty.rs:1 :10
105
+ --> $DIR/bad-assoc-ty.rs:5 :10
106
106
|
107
107
LL | type A = [u8; 4]::AssocTy;
108
108
| ^^^^^^^^^^^^^^^^
@@ -114,7 +114,7 @@ LL + type A = <[u8; 4] as Example>::AssocTy;
114
114
|
115
115
116
116
error[E0223]: ambiguous associated type
117
- --> $DIR/bad-assoc-ty.rs:5 :10
117
+ --> $DIR/bad-assoc-ty.rs:9 :10
118
118
|
119
119
LL | type B = [u8]::AssocTy;
120
120
| ^^^^^^^^^^^^^
@@ -126,7 +126,7 @@ LL + type B = <[u8] as Example>::AssocTy;
126
126
|
127
127
128
128
error[E0223]: ambiguous associated type
129
- --> $DIR/bad-assoc-ty.rs:9 :10
129
+ --> $DIR/bad-assoc-ty.rs:13 :10
130
130
|
131
131
LL | type C = (u8)::AssocTy;
132
132
| ^^^^^^^^^^^^^
@@ -138,7 +138,7 @@ LL + type C = <u8 as Example>::AssocTy;
138
138
|
139
139
140
140
error[E0223]: ambiguous associated type
141
- --> $DIR/bad-assoc-ty.rs:13 :10
141
+ --> $DIR/bad-assoc-ty.rs:17 :10
142
142
|
143
143
LL | type D = (u8, u8)::AssocTy;
144
144
| ^^^^^^^^^^^^^^^^^
@@ -150,13 +150,13 @@ LL + type D = <(u8, u8) as Example>::AssocTy;
150
150
|
151
151
152
152
error[E0121]: the placeholder `_` is not allowed within types on item signatures for type aliases
153
- --> $DIR/bad-assoc-ty.rs:17 :10
153
+ --> $DIR/bad-assoc-ty.rs:21 :10
154
154
|
155
155
LL | type E = _::AssocTy;
156
156
| ^ not allowed in type signatures
157
157
158
158
error[E0223]: ambiguous associated type
159
- --> $DIR/bad-assoc-ty.rs:21 :19
159
+ --> $DIR/bad-assoc-ty.rs:25 :19
160
160
|
161
161
LL | type F = &'static (u8)::AssocTy;
162
162
| ^^^^^^^^^^^^^
@@ -168,7 +168,7 @@ LL + type F = &'static <u8 as Example>::AssocTy;
168
168
|
169
169
170
170
error[E0223]: ambiguous associated type
171
- --> $DIR/bad-assoc-ty.rs:27 :10
171
+ --> $DIR/bad-assoc-ty.rs:31 :10
172
172
|
173
173
LL | type G = dyn 'static + (Send)::AssocTy;
174
174
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
@@ -180,7 +180,7 @@ LL + type G = <(dyn Send + 'static) as Example>::AssocTy;
180
180
|
181
181
182
182
warning: trait objects without an explicit `dyn` are deprecated
183
- --> $DIR/bad-assoc-ty.rs:33 :10
183
+ --> $DIR/bad-assoc-ty.rs:37 :10
184
184
|
185
185
LL | type H = Fn(u8) -> (u8)::Output;
186
186
| ^^^^^^^^^^^^^^
@@ -194,7 +194,7 @@ LL | type H = <dyn Fn(u8) -> (u8)>::Output;
194
194
| ++++ +
195
195
196
196
error[E0223]: ambiguous associated type
197
- --> $DIR/bad-assoc-ty.rs:33 :10
197
+ --> $DIR/bad-assoc-ty.rs:37 :10
198
198
|
199
199
LL | type H = Fn(u8) -> (u8)::Output;
200
200
| ^^^^^^^^^^^^^^^^^^^^^^
@@ -209,7 +209,7 @@ LL + type H = <(dyn Fn(u8) -> u8 + 'static) as IntoFuture>::Output;
209
209
|
210
210
211
211
error[E0223]: ambiguous associated type
212
- --> $DIR/bad-assoc-ty.rs:39 :19
212
+ --> $DIR/bad-assoc-ty.rs:44 :19
213
213
|
214
214
LL | ($ty: ty) => ($ty::AssocTy);
215
215
| ^^^^^^^^^^^^
@@ -225,7 +225,7 @@ LL + ($ty: ty) => (<u8 as Example>::AssocTy);
225
225
|
226
226
227
227
error[E0223]: ambiguous associated type
228
- --> $DIR/bad-assoc-ty.rs:46 :10
228
+ --> $DIR/bad-assoc-ty.rs:51 :10
229
229
|
230
230
LL | type I = ty!()::AssocTy;
231
231
| ^^^^^^^^^^^^^^
@@ -237,15 +237,15 @@ LL + type I = <u8 as Example>::AssocTy;
237
237
|
238
238
239
239
error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions
240
- --> $DIR/bad-assoc-ty.rs:51 :13
240
+ --> $DIR/bad-assoc-ty.rs:56 :13
241
241
|
242
242
LL | fn foo<X: K<_, _>>(x: X) {}
243
243
| ^ ^ not allowed in type signatures
244
244
| |
245
245
| not allowed in type signatures
246
246
247
247
error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions
248
- --> $DIR/bad-assoc-ty.rs:54 :34
248
+ --> $DIR/bad-assoc-ty.rs:59 :34
249
249
|
250
250
LL | fn bar<F>(_: F) where F: Fn() -> _ {}
251
251
| ^ not allowed in type signatures
@@ -257,7 +257,7 @@ LL + fn bar<F, T>(_: F) where F: Fn() -> T {}
257
257
|
258
258
259
259
error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions
260
- --> $DIR/bad-assoc-ty.rs:57 :19
260
+ --> $DIR/bad-assoc-ty.rs:62 :19
261
261
|
262
262
LL | fn baz<F: Fn() -> _>(_: F) {}
263
263
| ^ not allowed in type signatures
@@ -269,7 +269,7 @@ LL + fn baz<F: Fn() -> T, T>(_: F) {}
269
269
|
270
270
271
271
error[E0121]: the placeholder `_` is not allowed within types on item signatures for structs
272
- --> $DIR/bad-assoc-ty.rs:60 :33
272
+ --> $DIR/bad-assoc-ty.rs:65 :33
273
273
|
274
274
LL | struct L<F>(F) where F: Fn() -> _;
275
275
| ^ not allowed in type signatures
@@ -281,7 +281,7 @@ LL + struct L<F, T>(F) where F: Fn() -> T;
281
281
|
282
282
283
283
error[E0121]: the placeholder `_` is not allowed within types on item signatures for functions
284
- --> $DIR/bad-assoc-ty.rs:82 :38
284
+ --> $DIR/bad-assoc-ty.rs:87 :38
285
285
|
286
286
LL | fn foo<F>(_: F) where F: Fn() -> _ {}
287
287
| ^ not allowed in type signatures
@@ -293,7 +293,7 @@ LL + fn foo<F, T>(_: F) where F: Fn() -> T {}
293
293
|
294
294
295
295
error[E0121]: the placeholder `_` is not allowed within types on item signatures for structs
296
- --> $DIR/bad-assoc-ty.rs:62 :30
296
+ --> $DIR/bad-assoc-ty.rs:67 :30
297
297
|
298
298
LL | struct M<F> where F: Fn() -> _ {
299
299
| ^ not allowed in type signatures
@@ -305,7 +305,7 @@ LL + struct M<F, T> where F: Fn() -> T {
305
305
|
306
306
307
307
error[E0121]: the placeholder `_` is not allowed within types on item signatures for enums
308
- --> $DIR/bad-assoc-ty.rs:66 :28
308
+ --> $DIR/bad-assoc-ty.rs:71 :28
309
309
|
310
310
LL | enum N<F> where F: Fn() -> _ {
311
311
| ^ not allowed in type signatures
@@ -317,7 +317,7 @@ LL + enum N<F, T> where F: Fn() -> T {
317
317
|
318
318
319
319
error[E0121]: the placeholder `_` is not allowed within types on item signatures for unions
320
- --> $DIR/bad-assoc-ty.rs:71 :29
320
+ --> $DIR/bad-assoc-ty.rs:76 :29
321
321
|
322
322
LL | union O<F> where F: Fn() -> _ {
323
323
| ^ not allowed in type signatures
@@ -329,7 +329,7 @@ LL + union O<F, T> where F: Fn() -> T {
329
329
|
330
330
331
331
error[E0740]: field must implement `Copy` or be wrapped in `ManuallyDrop<...>` to be used in a union
332
- --> $DIR/bad-assoc-ty.rs:73 :5
332
+ --> $DIR/bad-assoc-ty.rs:78 :5
333
333
|
334
334
LL | foo: F,
335
335
| ^^^^^^
@@ -341,7 +341,7 @@ LL | foo: std::mem::ManuallyDrop<F>,
341
341
| +++++++++++++++++++++++ +
342
342
343
343
error[E0121]: the placeholder `_` is not allowed within types on item signatures for traits
344
- --> $DIR/bad-assoc-ty.rs:77 :29
344
+ --> $DIR/bad-assoc-ty.rs:82 :29
345
345
|
346
346
LL | trait P<F> where F: Fn() -> _ {
347
347
| ^ not allowed in type signatures
0 commit comments