@@ -44,33 +44,25 @@ error[E0223]: ambiguous associated type
4444 --> $DIR/bad-assoc-ty.rs:11:10
4545 |
4646LL | type A = [u8; 4]::AssocTy;
47- | ^^^^^^^^^^^^^^^^ ambiguous associated type
48- |
49- = note: specify the type using the syntax `<[u8; _] as Trait>::AssocTy`
47+ | ^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<[u8; _] as Trait>::AssocTy`
5048
5149error[E0223]: ambiguous associated type
5250 --> $DIR/bad-assoc-ty.rs:15:10
5351 |
5452LL | type B = [u8]::AssocTy;
55- | ^^^^^^^^^^^^^ ambiguous associated type
56- |
57- = note: specify the type using the syntax `<[u8] as Trait>::AssocTy`
53+ | ^^^^^^^^^^^^^ help: use fully-qualified syntax: `<[u8] as Trait>::AssocTy`
5854
5955error[E0223]: ambiguous associated type
6056 --> $DIR/bad-assoc-ty.rs:19:10
6157 |
6258LL | type C = (u8)::AssocTy;
63- | ^^^^^^^^^^^^^ ambiguous associated type
64- |
65- = note: specify the type using the syntax `<u8 as Trait>::AssocTy`
59+ | ^^^^^^^^^^^^^ help: use fully-qualified syntax: `<u8 as Trait>::AssocTy`
6660
6761error[E0223]: ambiguous associated type
6862 --> $DIR/bad-assoc-ty.rs:23:10
6963 |
7064LL | type D = (u8, u8)::AssocTy;
71- | ^^^^^^^^^^^^^^^^^ ambiguous associated type
72- |
73- = note: specify the type using the syntax `<(u8, u8) as Trait>::AssocTy`
65+ | ^^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<(u8, u8) as Trait>::AssocTy`
7466
7567error[E0121]: the type placeholder `_` is not allowed within types on item signatures
7668 --> $DIR/bad-assoc-ty.rs:27:10
@@ -82,25 +74,19 @@ error[E0223]: ambiguous associated type
8274 --> $DIR/bad-assoc-ty.rs:31:19
8375 |
8476LL | type F = &'static (u8)::AssocTy;
85- | ^^^^^^^^^^^^^ ambiguous associated type
86- |
87- = note: specify the type using the syntax `<u8 as Trait>::AssocTy`
77+ | ^^^^^^^^^^^^^ help: use fully-qualified syntax: `<u8 as Trait>::AssocTy`
8878
8979error[E0223]: ambiguous associated type
9080 --> $DIR/bad-assoc-ty.rs:37:10
9181 |
9282LL | type G = 'static + (Send)::AssocTy;
93- | ^^^^^^^^^^^^^^^^^^^^^^^^^ ambiguous associated type
94- |
95- = note: specify the type using the syntax `<(dyn std::marker::Send + 'static) as Trait>::AssocTy`
83+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<(dyn std::marker::Send + 'static) as Trait>::AssocTy`
9684
9785error[E0223]: ambiguous associated type
9886 --> $DIR/bad-assoc-ty.rs:43:10
9987 |
10088LL | type H = Fn(u8) -> (u8)::Output;
101- | ^^^^^^^^^^^^^^^^^^^^^^ ambiguous associated type
102- |
103- = note: specify the type using the syntax `<(dyn std::ops::Fn(u8) -> u8 + 'static) as Trait>::Output`
89+ | ^^^^^^^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<(dyn std::ops::Fn(u8) -> u8 + 'static) as Trait>::Output`
10490
10591error: aborting due to 15 previous errors
10692
0 commit comments