@@ -44,33 +44,25 @@ error[E0223]: ambiguous associated type
44
44
--> $DIR/bad-assoc-ty.rs:11:10
45
45
|
46
46
LL | 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`
50
48
51
49
error[E0223]: ambiguous associated type
52
50
--> $DIR/bad-assoc-ty.rs:15:10
53
51
|
54
52
LL | 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`
58
54
59
55
error[E0223]: ambiguous associated type
60
56
--> $DIR/bad-assoc-ty.rs:19:10
61
57
|
62
58
LL | 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`
66
60
67
61
error[E0223]: ambiguous associated type
68
62
--> $DIR/bad-assoc-ty.rs:23:10
69
63
|
70
64
LL | 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`
74
66
75
67
error[E0121]: the type placeholder `_` is not allowed within types on item signatures
76
68
--> $DIR/bad-assoc-ty.rs:27:10
@@ -82,25 +74,19 @@ error[E0223]: ambiguous associated type
82
74
--> $DIR/bad-assoc-ty.rs:31:19
83
75
|
84
76
LL | 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`
88
78
89
79
error[E0223]: ambiguous associated type
90
80
--> $DIR/bad-assoc-ty.rs:37:10
91
81
|
92
82
LL | 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`
96
84
97
85
error[E0223]: ambiguous associated type
98
86
--> $DIR/bad-assoc-ty.rs:43:10
99
87
|
100
88
LL | 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`
104
90
105
91
error: aborting due to 15 previous errors
106
92
0 commit comments