@@ -2,60 +2,104 @@ error: missing angle brackets in associated item path
2
2
--> $DIR/bad-assoc-ty.rs:1:10
3
3
|
4
4
LL | type A = [u8; 4]::AssocTy;
5
- | ^^^^^^^^^^^^^^^^ help: try: `<[u8; 4]>::AssocTy`
5
+ | ^^^^^^^
6
+ |
7
+ help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
8
+ |
9
+ LL | type A = <[u8; 4]>::AssocTy;
10
+ | + +
6
11
7
12
error: missing angle brackets in associated item path
8
13
--> $DIR/bad-assoc-ty.rs:5:10
9
14
|
10
15
LL | type B = [u8]::AssocTy;
11
- | ^^^^^^^^^^^^^ help: try: `<[u8]>::AssocTy`
16
+ | ^^^^
17
+ |
18
+ help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
19
+ |
20
+ LL | type B = <[u8]>::AssocTy;
21
+ | + +
12
22
13
23
error: missing angle brackets in associated item path
14
24
--> $DIR/bad-assoc-ty.rs:9:10
15
25
|
16
26
LL | type C = (u8)::AssocTy;
17
- | ^^^^^^^^^^^^^ help: try: `<(u8)>::AssocTy`
27
+ | ^^^^
28
+ |
29
+ help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
30
+ |
31
+ LL | type C = <(u8)>::AssocTy;
32
+ | + +
18
33
19
34
error: missing angle brackets in associated item path
20
35
--> $DIR/bad-assoc-ty.rs:13:10
21
36
|
22
37
LL | type D = (u8, u8)::AssocTy;
23
- | ^^^^^^^^^^^^^^^^^ help: try: `<(u8, u8)>::AssocTy`
38
+ | ^^^^^^^^
39
+ |
40
+ help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
41
+ |
42
+ LL | type D = <(u8, u8)>::AssocTy;
43
+ | + +
24
44
25
45
error: missing angle brackets in associated item path
26
46
--> $DIR/bad-assoc-ty.rs:17:10
27
47
|
28
48
LL | type E = _::AssocTy;
29
- | ^^^^^^^^^^ help: try: `<_>::AssocTy`
49
+ | ^
50
+ |
51
+ help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
52
+ |
53
+ LL | type E = <_>::AssocTy;
54
+ | + +
30
55
31
56
error: missing angle brackets in associated item path
32
57
--> $DIR/bad-assoc-ty.rs:21:19
33
58
|
34
59
LL | type F = &'static (u8)::AssocTy;
35
- | ^^^^^^^^^^^^^ help: try: `<(u8)>::AssocTy`
60
+ | ^^^^
61
+ |
62
+ help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
63
+ |
64
+ LL | type F = &'static <(u8)>::AssocTy;
65
+ | + +
36
66
37
67
error: missing angle brackets in associated item path
38
68
--> $DIR/bad-assoc-ty.rs:27:10
39
69
|
40
70
LL | type G = dyn 'static + (Send)::AssocTy;
41
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `<dyn 'static + (Send)>::AssocTy`
71
+ | ^^^^^^^^^^^^^^^^^^^^
72
+ |
73
+ help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
74
+ |
75
+ LL | type G = <dyn 'static + (Send)>::AssocTy;
76
+ | + +
42
77
43
78
error: missing angle brackets in associated item path
44
79
--> $DIR/bad-assoc-ty.rs:46:10
45
80
|
46
81
LL | type I = ty!()::AssocTy;
47
- | ^^^^^^^^^^^^^^ help: try: `<ty!()>::AssocTy`
82
+ | ^^^^^
83
+ |
84
+ help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
85
+ |
86
+ LL | type I = <ty!()>::AssocTy;
87
+ | + +
48
88
49
89
error: missing angle brackets in associated item path
50
90
--> $DIR/bad-assoc-ty.rs:39:19
51
91
|
52
92
LL | ($ty: ty) => ($ty::AssocTy);
53
- | ^^^^^^^^^^^^ help: try: `<$ty>::AssocTy`
93
+ | ^^^
54
94
...
55
95
LL | type J = ty!(u8);
56
96
| ------- in this macro invocation
57
97
|
58
98
= note: this error originates in the macro `ty` (in Nightly builds, run with -Z macro-backtrace for more info)
99
+ help: types that don't start with an identifier need to be surrounded with angle brackets in qualified paths
100
+ |
101
+ LL | ($ty: ty) => (<$ty>::AssocTy);
102
+ | + +
59
103
60
104
error[E0223]: ambiguous associated type
61
105
--> $DIR/bad-assoc-ty.rs:1:10
0 commit comments