@@ -29,25 +29,25 @@ LL | type E = _::AssocTy;
29
29
| ^^^^^^^^^^ help: try: `<_>::AssocTy`
30
30
31
31
error: missing angle brackets in associated item path
32
- --> $DIR/bad-assoc-ty.rs:21 :19
32
+ --> $DIR/bad-assoc-ty.rs:22 :19
33
33
|
34
34
LL | type F = &'static (u8)::AssocTy;
35
35
| ^^^^^^^^^^^^^ help: try: `<(u8)>::AssocTy`
36
36
37
37
error: missing angle brackets in associated item path
38
- --> $DIR/bad-assoc-ty.rs:27 :10
38
+ --> $DIR/bad-assoc-ty.rs:28 :10
39
39
|
40
40
LL | type G = dyn 'static + (Send)::AssocTy;
41
41
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `<dyn 'static + (Send)>::AssocTy`
42
42
43
43
error: missing angle brackets in associated item path
44
- --> $DIR/bad-assoc-ty.rs:44 :10
44
+ --> $DIR/bad-assoc-ty.rs:45 :10
45
45
|
46
46
LL | type I = ty!()::AssocTy;
47
47
| ^^^^^^^^^^^^^^ help: try: `<ty!()>::AssocTy`
48
48
49
49
error: missing angle brackets in associated item path
50
- --> $DIR/bad-assoc-ty.rs:37 :19
50
+ --> $DIR/bad-assoc-ty.rs:38 :19
51
51
|
52
52
LL | ($ty: ty) => ($ty::AssocTy);
53
53
| ^^^^^^^^^^^^ help: try: `<$ty>::AssocTy`
@@ -85,26 +85,32 @@ error[E0121]: the type placeholder `_` is not allowed within types on item signa
85
85
LL | type E = _::AssocTy;
86
86
| ^ not allowed in type signatures
87
87
88
+ error[E0121]: the type placeholder `_` is not allowed within types on item signatures
89
+ --> $DIR/bad-assoc-ty.rs:17:10
90
+ |
91
+ LL | type E = _::AssocTy;
92
+ | ^ not allowed in type signatures
93
+
88
94
error[E0223]: ambiguous associated type
89
- --> $DIR/bad-assoc-ty.rs:21 :19
95
+ --> $DIR/bad-assoc-ty.rs:22 :19
90
96
|
91
97
LL | type F = &'static (u8)::AssocTy;
92
98
| ^^^^^^^^^^^^^ help: use fully-qualified syntax: `<u8 as Trait>::AssocTy`
93
99
94
100
error[E0223]: ambiguous associated type
95
- --> $DIR/bad-assoc-ty.rs:27 :10
101
+ --> $DIR/bad-assoc-ty.rs:28 :10
96
102
|
97
103
LL | type G = dyn 'static + (Send)::AssocTy;
98
104
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<(dyn std::marker::Send + 'static) as Trait>::AssocTy`
99
105
100
106
error[E0223]: ambiguous associated type
101
- --> $DIR/bad-assoc-ty.rs:33 :10
107
+ --> $DIR/bad-assoc-ty.rs:34 :10
102
108
|
103
109
LL | type H = Fn(u8) -> (u8)::Output;
104
110
| ^^^^^^^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<(dyn std::ops::Fn(u8) -> u8 + 'static) as Trait>::Output`
105
111
106
112
error[E0223]: ambiguous associated type
107
- --> $DIR/bad-assoc-ty.rs:37 :19
113
+ --> $DIR/bad-assoc-ty.rs:38 :19
108
114
|
109
115
LL | ($ty: ty) => ($ty::AssocTy);
110
116
| ^^^^^^^^^^^^ help: use fully-qualified syntax: `<u8 as Trait>::AssocTy`
@@ -113,12 +119,12 @@ LL | type J = ty!(u8);
113
119
| ------- in this macro invocation
114
120
115
121
error[E0223]: ambiguous associated type
116
- --> $DIR/bad-assoc-ty.rs:44 :10
122
+ --> $DIR/bad-assoc-ty.rs:45 :10
117
123
|
118
124
LL | type I = ty!()::AssocTy;
119
125
| ^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<u8 as Trait>::AssocTy`
120
126
121
- error: aborting due to 19 previous errors
127
+ error: aborting due to 20 previous errors
122
128
123
129
Some errors have detailed explanations: E0121, E0223.
124
130
For more information about an error, try `rustc --explain E0121`.
0 commit comments