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