@@ -29,25 +29,25 @@ LL | type E = _::AssocTy;
2929 | ^^^^^^^^^^ help: try: `<_>::AssocTy`
3030
3131error: missing angle brackets in associated item path
32- --> $DIR/bad-assoc-ty.rs:21 :19
32+ --> $DIR/bad-assoc-ty.rs:22 :19
3333 |
3434LL | type F = &'static (u8)::AssocTy;
3535 | ^^^^^^^^^^^^^ help: try: `<(u8)>::AssocTy`
3636
3737error: missing angle brackets in associated item path
38- --> $DIR/bad-assoc-ty.rs:27 :10
38+ --> $DIR/bad-assoc-ty.rs:28 :10
3939 |
4040LL | type G = dyn 'static + (Send)::AssocTy;
4141 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `<dyn 'static + (Send)>::AssocTy`
4242
4343error: missing angle brackets in associated item path
44- --> $DIR/bad-assoc-ty.rs:44 :10
44+ --> $DIR/bad-assoc-ty.rs:45 :10
4545 |
4646LL | type I = ty!()::AssocTy;
4747 | ^^^^^^^^^^^^^^ help: try: `<ty!()>::AssocTy`
4848
4949error: missing angle brackets in associated item path
50- --> $DIR/bad-assoc-ty.rs:37 :19
50+ --> $DIR/bad-assoc-ty.rs:38 :19
5151 |
5252LL | ($ty: ty) => ($ty::AssocTy);
5353 | ^^^^^^^^^^^^ help: try: `<$ty>::AssocTy`
@@ -85,26 +85,32 @@ error[E0121]: the type placeholder `_` is not allowed within types on item signa
8585LL | type E = _::AssocTy;
8686 | ^ not allowed in type signatures
8787
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+
8894error[E0223]: ambiguous associated type
89- --> $DIR/bad-assoc-ty.rs:21 :19
95+ --> $DIR/bad-assoc-ty.rs:22 :19
9096 |
9197LL | type F = &'static (u8)::AssocTy;
9298 | ^^^^^^^^^^^^^ help: use fully-qualified syntax: `<u8 as Trait>::AssocTy`
9399
94100error[E0223]: ambiguous associated type
95- --> $DIR/bad-assoc-ty.rs:27 :10
101+ --> $DIR/bad-assoc-ty.rs:28 :10
96102 |
97103LL | type G = dyn 'static + (Send)::AssocTy;
98104 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<(dyn std::marker::Send + 'static) as Trait>::AssocTy`
99105
100106error[E0223]: ambiguous associated type
101- --> $DIR/bad-assoc-ty.rs:33 :10
107+ --> $DIR/bad-assoc-ty.rs:34 :10
102108 |
103109LL | type H = Fn(u8) -> (u8)::Output;
104110 | ^^^^^^^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<(dyn std::ops::Fn(u8) -> u8 + 'static) as Trait>::Output`
105111
106112error[E0223]: ambiguous associated type
107- --> $DIR/bad-assoc-ty.rs:37 :19
113+ --> $DIR/bad-assoc-ty.rs:38 :19
108114 |
109115LL | ($ty: ty) => ($ty::AssocTy);
110116 | ^^^^^^^^^^^^ help: use fully-qualified syntax: `<u8 as Trait>::AssocTy`
@@ -113,12 +119,12 @@ LL | type J = ty!(u8);
113119 | ------- in this macro invocation
114120
115121error[E0223]: ambiguous associated type
116- --> $DIR/bad-assoc-ty.rs:44 :10
122+ --> $DIR/bad-assoc-ty.rs:45 :10
117123 |
118124LL | type I = ty!()::AssocTy;
119125 | ^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<u8 as Trait>::AssocTy`
120126
121- error: aborting due to 19 previous errors
127+ error: aborting due to 20 previous errors
122128
123129Some errors have detailed explanations: E0121, E0223.
124130For more information about an error, try `rustc --explain E0121`.
0 commit comments