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