@@ -28,6 +28,24 @@ error: missing angle brackets in associated item path
28
28
27 | type E = _::AssocTy;
29
29
| ^^^^^^^^^^ help: try: `<_>::AssocTy`
30
30
31
+ error: missing angle brackets in associated item path
32
+ --> $DIR/bad-assoc-ty.rs:31:19
33
+ |
34
+ 31 | type F = &'static (u8)::AssocTy;
35
+ | ^^^^^^^^^^^^^ help: try: `<(u8)>::AssocTy`
36
+
37
+ error: missing angle brackets in associated item path
38
+ --> $DIR/bad-assoc-ty.rs:37:10
39
+ |
40
+ 37 | type G = 'static + (Send)::AssocTy;
41
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `< 'static + Send>::AssocTy`
42
+
43
+ error: missing angle brackets in associated item path
44
+ --> $DIR/bad-assoc-ty.rs:44:20
45
+ |
46
+ 44 | type H = Fn(u8) -> (u8)::Output;
47
+ | ^^^^^^^^^^^^ help: try: `<(u8)>::Output`
48
+
31
49
error[E0223]: ambiguous associated type
32
50
--> $DIR/bad-assoc-ty.rs:11:10
33
51
|
@@ -66,5 +84,29 @@ error[E0121]: the type placeholder `_` is not allowed within types on item signa
66
84
27 | type E = _::AssocTy;
67
85
| ^ not allowed in type signatures
68
86
69
- error: aborting due to 10 previous errors
87
+ error[E0223]: ambiguous associated type
88
+ --> $DIR/bad-assoc-ty.rs:31:19
89
+ |
90
+ 31 | type F = &'static (u8)::AssocTy;
91
+ | ^^^^^^^^^^^^^ ambiguous associated type
92
+ |
93
+ = note: specify the type using the syntax `<u8 as Trait>::AssocTy`
94
+
95
+ error[E0223]: ambiguous associated type
96
+ --> $DIR/bad-assoc-ty.rs:37:10
97
+ |
98
+ 37 | type G = 'static + (Send)::AssocTy;
99
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^ ambiguous associated type
100
+ |
101
+ = note: specify the type using the syntax `<std::marker::Send + 'static as Trait>::AssocTy`
102
+
103
+ error[E0223]: ambiguous associated type
104
+ --> $DIR/bad-assoc-ty.rs:44:20
105
+ |
106
+ 44 | type H = Fn(u8) -> (u8)::Output;
107
+ | ^^^^^^^^^^^^ ambiguous associated type
108
+ |
109
+ = note: specify the type using the syntax `<u8 as Trait>::Output`
110
+
111
+ error: aborting due to 16 previous errors
70
112
0 commit comments