@@ -2,60 +2,104 @@ error: missing angle brackets in associated item path
22 --> $DIR/bad-assoc-ty.rs:1:10
33 |
44LL | 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+ | + +
611
712error: missing angle brackets in associated item path
813 --> $DIR/bad-assoc-ty.rs:5:10
914 |
1015LL | 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+ | + +
1222
1323error: missing angle brackets in associated item path
1424 --> $DIR/bad-assoc-ty.rs:9:10
1525 |
1626LL | 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+ | + +
1833
1934error: missing angle brackets in associated item path
2035 --> $DIR/bad-assoc-ty.rs:13:10
2136 |
2237LL | 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+ | + +
2444
2545error: missing angle brackets in associated item path
2646 --> $DIR/bad-assoc-ty.rs:17:10
2747 |
2848LL | 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+ | + +
3055
3156error: missing angle brackets in associated item path
3257 --> $DIR/bad-assoc-ty.rs:21:19
3358 |
3459LL | 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+ | + +
3666
3767error: missing angle brackets in associated item path
3868 --> $DIR/bad-assoc-ty.rs:27:10
3969 |
4070LL | 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+ | + +
4277
4378error: missing angle brackets in associated item path
4479 --> $DIR/bad-assoc-ty.rs:46:10
4580 |
4681LL | 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+ | + +
4888
4989error: missing angle brackets in associated item path
5090 --> $DIR/bad-assoc-ty.rs:39:19
5191 |
5292LL | ($ty: ty) => ($ty::AssocTy);
53- | ^^^^^^^^^^^^ help: try: `<$ty>::AssocTy`
93+ | ^^^
5494...
5595LL | type J = ty!(u8);
5696 | ------- in this macro invocation
5797 |
5898 = 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+ | + +
59103
60104error[E0223]: ambiguous associated type
61105 --> $DIR/bad-assoc-ty.rs:1:10
0 commit comments