fork/rust

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

borsAuto merge of #66089 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum4560ea788cb

1.39.0
6.7 KiB204 linesraw
1error[E0433]: failed to resolve: `Y` is a variant, not a module
2  --> $DIR/ufcs-partially-resolved.rs:48:22
3   |
4LL |     let _: <u8 as E::Y>::NN;
5   |                      ^ `Y` is a variant, not a module
6
7error[E0433]: failed to resolve: `Y` is a variant, not a module
8  --> $DIR/ufcs-partially-resolved.rs:50:15
9   |
10LL |     <u8 as E::Y>::NN;
11   |               ^ `Y` is a variant, not a module
12
13error[E0576]: cannot find associated type `N` in trait `Tr`
14  --> $DIR/ufcs-partially-resolved.rs:19:24
15   |
16LL |     let _: <u8 as Tr>::N;
17   |                        ^ help: an associated type with a similar name exists: `Y`
18
19error[E0576]: cannot find associated type `N` in enum `E`
20  --> $DIR/ufcs-partially-resolved.rs:20:23
21   |
22LL |     let _: <u8 as E>::N;
23   |                       ^ not found in `E`
24
25error[E0576]: cannot find associated type `N` in `A`
26  --> $DIR/ufcs-partially-resolved.rs:21:23
27   |
28LL |     let _: <u8 as A>::N;
29   |                       ^ not found in `A`
30
31error[E0576]: cannot find method or associated constant `N` in trait `Tr`
32  --> $DIR/ufcs-partially-resolved.rs:22:17
33   |
34LL |     <u8 as Tr>::N;
35   |                 ^ help: a method with a similar name exists: `Y`
36
37error[E0576]: cannot find method or associated constant `N` in enum `E`
38  --> $DIR/ufcs-partially-resolved.rs:23:16
39   |
40LL |     <u8 as E>::N;
41   |                ^ not found in `E`
42
43error[E0576]: cannot find method or associated constant `N` in `A`
44  --> $DIR/ufcs-partially-resolved.rs:24:16
45   |
46LL |     <u8 as A>::N;
47   |                ^ not found in `A`
48
49error[E0575]: expected associated type, found variant `E::Y`
50  --> $DIR/ufcs-partially-resolved.rs:26:12
51   |
52LL |     let _: <u8 as E>::Y;
53   |            ^^^^^^^^^^^^ not a associated type
54
55error[E0575]: expected method or associated constant, found unit variant `E::Y`
56  --> $DIR/ufcs-partially-resolved.rs:28:5
57   |
58LL |     <u8 as E>::Y;
59   |     ^^^^^^^^^^^^ not a method or associated constant
60
61error[E0576]: cannot find associated type `N` in trait `Tr`
62  --> $DIR/ufcs-partially-resolved.rs:30:24
63   |
64LL |     let _: <u8 as Tr>::N::NN;
65   |                        ^ help: an associated type with a similar name exists: `Y`
66
67error[E0576]: cannot find associated type `N` in enum `E`
68  --> $DIR/ufcs-partially-resolved.rs:31:23
69   |
70LL |     let _: <u8 as E>::N::NN;
71   |                       ^ not found in `E`
72
73error[E0576]: cannot find associated type `N` in `A`
74  --> $DIR/ufcs-partially-resolved.rs:32:23
75   |
76LL |     let _: <u8 as A>::N::NN;
77   |                       ^ not found in `A`
78
79error[E0576]: cannot find associated type `N` in trait `Tr`
80  --> $DIR/ufcs-partially-resolved.rs:33:17
81   |
82LL |     <u8 as Tr>::N::NN;
83   |                 ^ help: an associated type with a similar name exists: `Y`
84
85error[E0576]: cannot find associated type `N` in enum `E`
86  --> $DIR/ufcs-partially-resolved.rs:34:16
87   |
88LL |     <u8 as E>::N::NN;
89   |                ^ not found in `E`
90
91error[E0576]: cannot find associated type `N` in `A`
92  --> $DIR/ufcs-partially-resolved.rs:35:16
93   |
94LL |     <u8 as A>::N::NN;
95   |                ^ not found in `A`
96
97error[E0575]: expected associated type, found variant `E::Y`
98  --> $DIR/ufcs-partially-resolved.rs:37:12
99   |
100LL |     let _: <u8 as E>::Y::NN;
101   |            ^^^^^^^^^^^^^^^^ not a associated type
102
103error[E0575]: expected associated type, found variant `E::Y`
104  --> $DIR/ufcs-partially-resolved.rs:39:5
105   |
106LL |     <u8 as E>::Y::NN;
107   |     ^^^^^^^^^^^^^^^^ not a associated type
108
109error[E0576]: cannot find associated type `NN` in `Tr::N`
110  --> $DIR/ufcs-partially-resolved.rs:41:27
111   |
112LL |     let _: <u8 as Tr::N>::NN;
113   |                           ^^ not found in `Tr::N`
114
115error[E0576]: cannot find associated type `NN` in `E::N`
116  --> $DIR/ufcs-partially-resolved.rs:42:26
117   |
118LL |     let _: <u8 as E::N>::NN;
119   |                          ^^ not found in `E::N`
120
121error[E0576]: cannot find associated type `NN` in `A::N`
122  --> $DIR/ufcs-partially-resolved.rs:43:26
123   |
124LL |     let _: <u8 as A::N>::NN;
125   |                          ^^ not found in `A::N`
126
127error[E0576]: cannot find method or associated constant `NN` in `Tr::N`
128  --> $DIR/ufcs-partially-resolved.rs:44:20
129   |
130LL |     <u8 as Tr::N>::NN;
131   |                    ^^ not found in `Tr::N`
132
133error[E0576]: cannot find method or associated constant `NN` in `E::N`
134  --> $DIR/ufcs-partially-resolved.rs:45:19
135   |
136LL |     <u8 as E::N>::NN;
137   |                   ^^ not found in `E::N`
138
139error[E0576]: cannot find method or associated constant `NN` in `A::N`
140  --> $DIR/ufcs-partially-resolved.rs:46:19
141   |
142LL |     <u8 as A::N>::NN;
143   |                   ^^ not found in `A::N`
144
145error[E0576]: cannot find associated type `NN` in `Tr::Y`
146  --> $DIR/ufcs-partially-resolved.rs:47:27
147   |
148LL |     let _: <u8 as Tr::Y>::NN;
149   |                           ^^ not found in `Tr::Y`
150
151error[E0576]: cannot find method or associated constant `NN` in `Tr::Y`
152  --> $DIR/ufcs-partially-resolved.rs:49:20
153   |
154LL |     <u8 as Tr::Y>::NN;
155   |                    ^^ not found in `Tr::Y`
156
157error[E0575]: expected associated type, found method `Dr::Z`
158  --> $DIR/ufcs-partially-resolved.rs:52:12
159   |
160LL |     let _: <u8 as Dr>::Z;
161   |            ^^^^^^^^^^^^-
162   |                        |
163   |                        help: an associated type with a similar name exists: `X`
164
165error[E0575]: expected method or associated constant, found associated type `Dr::X`
166  --> $DIR/ufcs-partially-resolved.rs:53:5
167   |
168LL |     <u8 as Dr>::X;
169   |     ^^^^^^^^^^^^-
170   |                 |
171   |                 help: a method with a similar name exists: `Z`
172   |
173   = note: can't use a type alias as a constructor
174
175error[E0575]: expected associated type, found method `Dr::Z`
176  --> $DIR/ufcs-partially-resolved.rs:54:12
177   |
178LL |     let _: <u8 as Dr>::Z::N;
179   |            ^^^^^^^^^^^^-^^^
180   |                        |
181   |                        help: an associated type with a similar name exists: `X`
182
183error[E0223]: ambiguous associated type
184  --> $DIR/ufcs-partially-resolved.rs:36:12
185   |
186LL |     let _: <u8 as Tr>::Y::NN;
187   |            ^^^^^^^^^^^^^^^^^ help: use fully-qualified syntax: `<<u8 as Tr>::Y as Trait>::NN`
188
189error[E0599]: no associated item named `NN` found for type `<u8 as Tr>::Y` in the current scope
190  --> $DIR/ufcs-partially-resolved.rs:38:20
191   |
192LL |     <u8 as Tr>::Y::NN;
193   |                    ^^ associated item not found in `<u8 as Tr>::Y`
194
195error[E0599]: no associated item named `N` found for type `<u8 as Dr>::X` in the current scope
196  --> $DIR/ufcs-partially-resolved.rs:55:20
197   |
198LL |     <u8 as Dr>::X::N;
199   |                    ^ associated item not found in `<u8 as Dr>::X`
200
201error: aborting due to 32 previous errors
202
203Some errors have detailed explanations: E0223, E0433, E0599.
204For more information about an error, try `rustc --explain E0223`.