fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #69854 - pietroalbini:stable-next, r=Centrilb8cedc00407

1.42.0
4.2 KiB130 linesraw
1error: missing angle brackets in associated item path
2  --> $DIR/bad-assoc-ty.rs:1:10
3   |
4LL | type A = [u8; 4]::AssocTy;
5   |          ^^^^^^^^^^^^^^^^ help: try: `<[u8; 4]>::AssocTy`
6
7error: missing angle brackets in associated item path
8  --> $DIR/bad-assoc-ty.rs:5:10
9   |
10LL | type B = [u8]::AssocTy;
11   |          ^^^^^^^^^^^^^ help: try: `<[u8]>::AssocTy`
12
13error: missing angle brackets in associated item path
14  --> $DIR/bad-assoc-ty.rs:9:10
15   |
16LL | type C = (u8)::AssocTy;
17   |          ^^^^^^^^^^^^^ help: try: `<(u8)>::AssocTy`
18
19error: missing angle brackets in associated item path
20  --> $DIR/bad-assoc-ty.rs:13:10
21   |
22LL | type D = (u8, u8)::AssocTy;
23   |          ^^^^^^^^^^^^^^^^^ help: try: `<(u8, u8)>::AssocTy`
24
25error: missing angle brackets in associated item path
26  --> $DIR/bad-assoc-ty.rs:17:10
27   |
28LL | type E = _::AssocTy;
29   |          ^^^^^^^^^^ help: try: `<_>::AssocTy`
30
31error: missing angle brackets in associated item path
32  --> $DIR/bad-assoc-ty.rs:22:19
33   |
34LL | type F = &'static (u8)::AssocTy;
35   |                   ^^^^^^^^^^^^^ help: try: `<(u8)>::AssocTy`
36
37error: missing angle brackets in associated item path
38  --> $DIR/bad-assoc-ty.rs:28:10
39   |
40LL | type G = dyn 'static + (Send)::AssocTy;
41   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `<dyn 'static + (Send)>::AssocTy`
42
43error: missing angle brackets in associated item path
44  --> $DIR/bad-assoc-ty.rs:45:10
45   |
46LL | type I = ty!()::AssocTy;
47   |          ^^^^^^^^^^^^^^ help: try: `<ty!()>::AssocTy`
48
49error: missing angle brackets in associated item path
50  --> $DIR/bad-assoc-ty.rs:38:19
51   |
52LL |     ($ty: ty) => ($ty::AssocTy);
53   |                   ^^^^^^^^^^^^ help: try: `<$ty>::AssocTy`
54...
55LL | type J = ty!(u8);
56   |          ------- in this macro invocation
57
58error[E0223]: ambiguous associated type
59  --> $DIR/bad-assoc-ty.rs:1:10
60   |
61LL | type A = [u8; 4]::AssocTy;
62   |          ^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<[u8; 4] as Trait>::AssocTy`
63
64error[E0223]: ambiguous associated type
65  --> $DIR/bad-assoc-ty.rs:5:10
66   |
67LL | type B = [u8]::AssocTy;
68   |          ^^^^^^^^^^^^^ help: use fully-qualified syntax: `<[u8] as Trait>::AssocTy`
69
70error[E0223]: ambiguous associated type
71  --> $DIR/bad-assoc-ty.rs:9:10
72   |
73LL | type C = (u8)::AssocTy;
74   |          ^^^^^^^^^^^^^ help: use fully-qualified syntax: `<u8 as Trait>::AssocTy`
75
76error[E0223]: ambiguous associated type
77  --> $DIR/bad-assoc-ty.rs:13:10
78   |
79LL | type D = (u8, u8)::AssocTy;
80   |          ^^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<(u8, u8) as Trait>::AssocTy`
81
82error[E0121]: the type placeholder `_` is not allowed within types on item signatures
83  --> $DIR/bad-assoc-ty.rs:17:10
84   |
85LL | type E = _::AssocTy;
86   |          ^ not allowed in type signatures
87
88error[E0121]: the type placeholder `_` is not allowed within types on item signatures
89  --> $DIR/bad-assoc-ty.rs:17:10
90   |
91LL | type E = _::AssocTy;
92   |          ^ not allowed in type signatures
93
94error[E0223]: ambiguous associated type
95  --> $DIR/bad-assoc-ty.rs:22:19
96   |
97LL | type F = &'static (u8)::AssocTy;
98   |                   ^^^^^^^^^^^^^ help: use fully-qualified syntax: `<u8 as Trait>::AssocTy`
99
100error[E0223]: ambiguous associated type
101  --> $DIR/bad-assoc-ty.rs:28:10
102   |
103LL | type G = dyn 'static + (Send)::AssocTy;
104   |          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<(dyn std::marker::Send + 'static) as Trait>::AssocTy`
105
106error[E0223]: ambiguous associated type
107  --> $DIR/bad-assoc-ty.rs:34:10
108   |
109LL | type H = Fn(u8) -> (u8)::Output;
110   |          ^^^^^^^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<(dyn std::ops::Fn(u8) -> u8 + 'static) as Trait>::Output`
111
112error[E0223]: ambiguous associated type
113  --> $DIR/bad-assoc-ty.rs:38:19
114   |
115LL |     ($ty: ty) => ($ty::AssocTy);
116   |                   ^^^^^^^^^^^^ help: use fully-qualified syntax: `<u8 as Trait>::AssocTy`
117...
118LL | type J = ty!(u8);
119   |          ------- in this macro invocation
120
121error[E0223]: ambiguous associated type
122  --> $DIR/bad-assoc-ty.rs:45:10
123   |
124LL | type I = ty!()::AssocTy;
125   |          ^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<u8 as Trait>::AssocTy`
126
127error: aborting due to 20 previous errors
128
129Some errors have detailed explanations: E0121, E0223.
130For more information about an error, try `rustc --explain E0121`.