fork/rust

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

borsAuto merge of #68568 - pietroalbini:stable-next, r=pietroalbini5e1a799842b

1.41.0
16.6 KiB478 linesraw
1error[E0423]: expected value, found type alias `m1::S`
2  --> $DIR/namespace-mix.rs:34:11
3   |
4LL |     pub struct TS();
5   |     ---------------- similarly named tuple struct `TS` defined here
6...
7LL |     check(m1::S);
8   |           ^^^^^
9   |
10   = note: can't use a type alias as a constructor
11help: a tuple struct with a similar name exists
12   |
13LL |     check(m1::TS);
14   |               ^^
15help: possible better candidates are found in other modules, you can import them into scope
16   |
17LL | use m2::S;
18   |
19LL | use namespace_mix::xm2::S;
20   |
21
22error[E0423]: expected value, found type alias `xm1::S`
23  --> $DIR/namespace-mix.rs:40:11
24   |
25LL |     check(xm1::S);
26   |           ^^^^^^
27   |
28   = note: can't use a type alias as a constructor
29help: a tuple struct with a similar name exists
30   |
31LL |     check(xm1::TS);
32   |                ^^
33help: possible better candidates are found in other modules, you can import them into scope
34   |
35LL | use m2::S;
36   |
37LL | use namespace_mix::xm2::S;
38   |
39
40error[E0423]: expected value, found struct variant `m7::V`
41  --> $DIR/namespace-mix.rs:100:11
42   |
43LL |         V {},
44   |         ---- `m7::V` defined here
45LL |         TV(),
46   |         ---- similarly named tuple variant `TV` defined here
47...
48LL |     check(m7::V);
49   |           ^^^^^ did you mean `m7::V { /* fields */ }`?
50   |
51help: a tuple variant with a similar name exists
52   |
53LL |     check(m7::TV);
54   |               ^^
55help: possible better candidates are found in other modules, you can import them into scope
56   |
57LL | use m8::V;
58   |
59LL | use namespace_mix::xm8::V;
60   |
61
62error[E0423]: expected value, found struct variant `xm7::V`
63  --> $DIR/namespace-mix.rs:106:11
64   |
65LL |     check(xm7::V);
66   |           ^^^^^^ did you mean `xm7::V { /* fields */ }`?
67   |
68help: a tuple variant with a similar name exists
69   |
70LL |     check(xm7::TV);
71   |                ^^
72help: possible better candidates are found in other modules, you can import them into scope
73   |
74LL | use m8::V;
75   |
76LL | use namespace_mix::xm8::V;
77   |
78
79error[E0277]: the trait bound `c::Item: Impossible` is not satisfied
80  --> $DIR/namespace-mix.rs:33:11
81   |
82LL | fn check<T: Impossible>(_: T) {}
83   |    -----    ---------- required by this bound in `check`
84...
85LL |     check(m1::S{});
86   |           ^^^^^^^ the trait `Impossible` is not implemented for `c::Item`
87
88error[E0277]: the trait bound `c::S: Impossible` is not satisfied
89  --> $DIR/namespace-mix.rs:35:11
90   |
91LL | fn check<T: Impossible>(_: T) {}
92   |    -----    ---------- required by this bound in `check`
93...
94LL |     check(m2::S{});
95   |           ^^^^^^^ the trait `Impossible` is not implemented for `c::S`
96
97error[E0277]: the trait bound `c::Item: Impossible` is not satisfied
98  --> $DIR/namespace-mix.rs:36:11
99   |
100LL | fn check<T: Impossible>(_: T) {}
101   |    -----    ---------- required by this bound in `check`
102...
103LL |     check(m2::S);
104   |           ^^^^^ the trait `Impossible` is not implemented for `c::Item`
105
106error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied
107  --> $DIR/namespace-mix.rs:39:11
108   |
109LL | fn check<T: Impossible>(_: T) {}
110   |    -----    ---------- required by this bound in `check`
111...
112LL |     check(xm1::S{});
113   |           ^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item`
114
115error[E0277]: the trait bound `namespace_mix::c::S: Impossible` is not satisfied
116  --> $DIR/namespace-mix.rs:41:11
117   |
118LL | fn check<T: Impossible>(_: T) {}
119   |    -----    ---------- required by this bound in `check`
120...
121LL |     check(xm2::S{});
122   |           ^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::S`
123
124error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied
125  --> $DIR/namespace-mix.rs:42:11
126   |
127LL | fn check<T: Impossible>(_: T) {}
128   |    -----    ---------- required by this bound in `check`
129...
130LL |     check(xm2::S);
131   |           ^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item`
132
133error[E0277]: the trait bound `c::Item: Impossible` is not satisfied
134  --> $DIR/namespace-mix.rs:55:11
135   |
136LL | fn check<T: Impossible>(_: T) {}
137   |    -----    ---------- required by this bound in `check`
138...
139LL |     check(m3::TS{});
140   |           ^^^^^^^^ the trait `Impossible` is not implemented for `c::Item`
141
142error[E0277]: the trait bound `fn() -> c::TS {c::TS}: Impossible` is not satisfied
143  --> $DIR/namespace-mix.rs:56:11
144   |
145LL | fn check<T: Impossible>(_: T) {}
146   |    -----    ---------- required by this bound in `check`
147...
148LL |     check(m3::TS);
149   |           ^^^^^^ the trait `Impossible` is not implemented for `fn() -> c::TS {c::TS}`
150
151error[E0277]: the trait bound `c::TS: Impossible` is not satisfied
152  --> $DIR/namespace-mix.rs:57:11
153   |
154LL | fn check<T: Impossible>(_: T) {}
155   |    -----    ---------- required by this bound in `check`
156...
157LL |     check(m4::TS{});
158   |           ^^^^^^^^ the trait `Impossible` is not implemented for `c::TS`
159
160error[E0277]: the trait bound `c::Item: Impossible` is not satisfied
161  --> $DIR/namespace-mix.rs:58:11
162   |
163LL | fn check<T: Impossible>(_: T) {}
164   |    -----    ---------- required by this bound in `check`
165...
166LL |     check(m4::TS);
167   |           ^^^^^^ the trait `Impossible` is not implemented for `c::Item`
168
169error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied
170  --> $DIR/namespace-mix.rs:61:11
171   |
172LL | fn check<T: Impossible>(_: T) {}
173   |    -----    ---------- required by this bound in `check`
174...
175LL |     check(xm3::TS{});
176   |           ^^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item`
177
178error[E0277]: the trait bound `fn() -> namespace_mix::c::TS {namespace_mix::c::TS}: Impossible` is not satisfied
179  --> $DIR/namespace-mix.rs:62:11
180   |
181LL | fn check<T: Impossible>(_: T) {}
182   |    -----    ---------- required by this bound in `check`
183...
184LL |     check(xm3::TS);
185   |           ^^^^^^^ the trait `Impossible` is not implemented for `fn() -> namespace_mix::c::TS {namespace_mix::c::TS}`
186
187error[E0277]: the trait bound `namespace_mix::c::TS: Impossible` is not satisfied
188  --> $DIR/namespace-mix.rs:63:11
189   |
190LL | fn check<T: Impossible>(_: T) {}
191   |    -----    ---------- required by this bound in `check`
192...
193LL |     check(xm4::TS{});
194   |           ^^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::TS`
195
196error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied
197  --> $DIR/namespace-mix.rs:64:11
198   |
199LL | fn check<T: Impossible>(_: T) {}
200   |    -----    ---------- required by this bound in `check`
201...
202LL |     check(xm4::TS);
203   |           ^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item`
204
205error[E0277]: the trait bound `c::Item: Impossible` is not satisfied
206  --> $DIR/namespace-mix.rs:77:11
207   |
208LL | fn check<T: Impossible>(_: T) {}
209   |    -----    ---------- required by this bound in `check`
210...
211LL |     check(m5::US{});
212   |           ^^^^^^^^ the trait `Impossible` is not implemented for `c::Item`
213
214error[E0277]: the trait bound `c::US: Impossible` is not satisfied
215  --> $DIR/namespace-mix.rs:78:11
216   |
217LL | fn check<T: Impossible>(_: T) {}
218   |    -----    ---------- required by this bound in `check`
219...
220LL |     check(m5::US);
221   |           ^^^^^^ the trait `Impossible` is not implemented for `c::US`
222
223error[E0277]: the trait bound `c::US: Impossible` is not satisfied
224  --> $DIR/namespace-mix.rs:79:11
225   |
226LL | fn check<T: Impossible>(_: T) {}
227   |    -----    ---------- required by this bound in `check`
228...
229LL |     check(m6::US{});
230   |           ^^^^^^^^ the trait `Impossible` is not implemented for `c::US`
231
232error[E0277]: the trait bound `c::Item: Impossible` is not satisfied
233  --> $DIR/namespace-mix.rs:80:11
234   |
235LL | fn check<T: Impossible>(_: T) {}
236   |    -----    ---------- required by this bound in `check`
237...
238LL |     check(m6::US);
239   |           ^^^^^^ the trait `Impossible` is not implemented for `c::Item`
240
241error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied
242  --> $DIR/namespace-mix.rs:83:11
243   |
244LL | fn check<T: Impossible>(_: T) {}
245   |    -----    ---------- required by this bound in `check`
246...
247LL |     check(xm5::US{});
248   |           ^^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item`
249
250error[E0277]: the trait bound `namespace_mix::c::US: Impossible` is not satisfied
251  --> $DIR/namespace-mix.rs:84:11
252   |
253LL | fn check<T: Impossible>(_: T) {}
254   |    -----    ---------- required by this bound in `check`
255...
256LL |     check(xm5::US);
257   |           ^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::US`
258
259error[E0277]: the trait bound `namespace_mix::c::US: Impossible` is not satisfied
260  --> $DIR/namespace-mix.rs:85:11
261   |
262LL | fn check<T: Impossible>(_: T) {}
263   |    -----    ---------- required by this bound in `check`
264...
265LL |     check(xm6::US{});
266   |           ^^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::US`
267
268error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied
269  --> $DIR/namespace-mix.rs:86:11
270   |
271LL | fn check<T: Impossible>(_: T) {}
272   |    -----    ---------- required by this bound in `check`
273...
274LL |     check(xm6::US);
275   |           ^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item`
276
277error[E0277]: the trait bound `c::Item: Impossible` is not satisfied
278  --> $DIR/namespace-mix.rs:99:11
279   |
280LL | fn check<T: Impossible>(_: T) {}
281   |    -----    ---------- required by this bound in `check`
282...
283LL |     check(m7::V{});
284   |           ^^^^^^^ the trait `Impossible` is not implemented for `c::Item`
285
286error[E0277]: the trait bound `c::E: Impossible` is not satisfied
287  --> $DIR/namespace-mix.rs:101:11
288   |
289LL | fn check<T: Impossible>(_: T) {}
290   |    -----    ---------- required by this bound in `check`
291...
292LL |     check(m8::V{});
293   |           ^^^^^^^ the trait `Impossible` is not implemented for `c::E`
294
295error[E0277]: the trait bound `c::Item: Impossible` is not satisfied
296  --> $DIR/namespace-mix.rs:102:11
297   |
298LL | fn check<T: Impossible>(_: T) {}
299   |    -----    ---------- required by this bound in `check`
300...
301LL |     check(m8::V);
302   |           ^^^^^ the trait `Impossible` is not implemented for `c::Item`
303
304error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied
305  --> $DIR/namespace-mix.rs:105:11
306   |
307LL | fn check<T: Impossible>(_: T) {}
308   |    -----    ---------- required by this bound in `check`
309...
310LL |     check(xm7::V{});
311   |           ^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item`
312
313error[E0277]: the trait bound `namespace_mix::c::E: Impossible` is not satisfied
314  --> $DIR/namespace-mix.rs:107:11
315   |
316LL | fn check<T: Impossible>(_: T) {}
317   |    -----    ---------- required by this bound in `check`
318...
319LL |     check(xm8::V{});
320   |           ^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::E`
321
322error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied
323  --> $DIR/namespace-mix.rs:108:11
324   |
325LL | fn check<T: Impossible>(_: T) {}
326   |    -----    ---------- required by this bound in `check`
327...
328LL |     check(xm8::V);
329   |           ^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item`
330
331error[E0277]: the trait bound `c::Item: Impossible` is not satisfied
332  --> $DIR/namespace-mix.rs:121:11
333   |
334LL | fn check<T: Impossible>(_: T) {}
335   |    -----    ---------- required by this bound in `check`
336...
337LL |     check(m9::TV{});
338   |           ^^^^^^^^ the trait `Impossible` is not implemented for `c::Item`
339
340error[E0277]: the trait bound `fn() -> c::E {c::E::TV}: Impossible` is not satisfied
341  --> $DIR/namespace-mix.rs:122:11
342   |
343LL | fn check<T: Impossible>(_: T) {}
344   |    -----    ---------- required by this bound in `check`
345...
346LL |     check(m9::TV);
347   |           ^^^^^^ the trait `Impossible` is not implemented for `fn() -> c::E {c::E::TV}`
348
349error[E0277]: the trait bound `c::E: Impossible` is not satisfied
350  --> $DIR/namespace-mix.rs:123:11
351   |
352LL | fn check<T: Impossible>(_: T) {}
353   |    -----    ---------- required by this bound in `check`
354...
355LL |     check(mA::TV{});
356   |           ^^^^^^^^ the trait `Impossible` is not implemented for `c::E`
357
358error[E0277]: the trait bound `c::Item: Impossible` is not satisfied
359  --> $DIR/namespace-mix.rs:124:11
360   |
361LL | fn check<T: Impossible>(_: T) {}
362   |    -----    ---------- required by this bound in `check`
363...
364LL |     check(mA::TV);
365   |           ^^^^^^ the trait `Impossible` is not implemented for `c::Item`
366
367error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied
368  --> $DIR/namespace-mix.rs:127:11
369   |
370LL | fn check<T: Impossible>(_: T) {}
371   |    -----    ---------- required by this bound in `check`
372...
373LL |     check(xm9::TV{});
374   |           ^^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item`
375
376error[E0277]: the trait bound `fn() -> namespace_mix::c::E {namespace_mix::xm7::TV}: Impossible` is not satisfied
377  --> $DIR/namespace-mix.rs:128:11
378   |
379LL | fn check<T: Impossible>(_: T) {}
380   |    -----    ---------- required by this bound in `check`
381...
382LL |     check(xm9::TV);
383   |           ^^^^^^^ the trait `Impossible` is not implemented for `fn() -> namespace_mix::c::E {namespace_mix::xm7::TV}`
384
385error[E0277]: the trait bound `namespace_mix::c::E: Impossible` is not satisfied
386  --> $DIR/namespace-mix.rs:129:11
387   |
388LL | fn check<T: Impossible>(_: T) {}
389   |    -----    ---------- required by this bound in `check`
390...
391LL |     check(xmA::TV{});
392   |           ^^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::E`
393
394error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied
395  --> $DIR/namespace-mix.rs:130:11
396   |
397LL | fn check<T: Impossible>(_: T) {}
398   |    -----    ---------- required by this bound in `check`
399...
400LL |     check(xmA::TV);
401   |           ^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item`
402
403error[E0277]: the trait bound `c::Item: Impossible` is not satisfied
404  --> $DIR/namespace-mix.rs:143:11
405   |
406LL | fn check<T: Impossible>(_: T) {}
407   |    -----    ---------- required by this bound in `check`
408...
409LL |     check(mB::UV{});
410   |           ^^^^^^^^ the trait `Impossible` is not implemented for `c::Item`
411
412error[E0277]: the trait bound `c::E: Impossible` is not satisfied
413  --> $DIR/namespace-mix.rs:144:11
414   |
415LL | fn check<T: Impossible>(_: T) {}
416   |    -----    ---------- required by this bound in `check`
417...
418LL |     check(mB::UV);
419   |           ^^^^^^ the trait `Impossible` is not implemented for `c::E`
420
421error[E0277]: the trait bound `c::E: Impossible` is not satisfied
422  --> $DIR/namespace-mix.rs:145:11
423   |
424LL | fn check<T: Impossible>(_: T) {}
425   |    -----    ---------- required by this bound in `check`
426...
427LL |     check(mC::UV{});
428   |           ^^^^^^^^ the trait `Impossible` is not implemented for `c::E`
429
430error[E0277]: the trait bound `c::Item: Impossible` is not satisfied
431  --> $DIR/namespace-mix.rs:146:11
432   |
433LL | fn check<T: Impossible>(_: T) {}
434   |    -----    ---------- required by this bound in `check`
435...
436LL |     check(mC::UV);
437   |           ^^^^^^ the trait `Impossible` is not implemented for `c::Item`
438
439error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied
440  --> $DIR/namespace-mix.rs:149:11
441   |
442LL | fn check<T: Impossible>(_: T) {}
443   |    -----    ---------- required by this bound in `check`
444...
445LL |     check(xmB::UV{});
446   |           ^^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item`
447
448error[E0277]: the trait bound `namespace_mix::c::E: Impossible` is not satisfied
449  --> $DIR/namespace-mix.rs:150:11
450   |
451LL | fn check<T: Impossible>(_: T) {}
452   |    -----    ---------- required by this bound in `check`
453...
454LL |     check(xmB::UV);
455   |           ^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::E`
456
457error[E0277]: the trait bound `namespace_mix::c::E: Impossible` is not satisfied
458  --> $DIR/namespace-mix.rs:151:11
459   |
460LL | fn check<T: Impossible>(_: T) {}
461   |    -----    ---------- required by this bound in `check`
462...
463LL |     check(xmC::UV{});
464   |           ^^^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::E`
465
466error[E0277]: the trait bound `namespace_mix::c::Item: Impossible` is not satisfied
467  --> $DIR/namespace-mix.rs:152:11
468   |
469LL | fn check<T: Impossible>(_: T) {}
470   |    -----    ---------- required by this bound in `check`
471...
472LL |     check(xmC::UV);
473   |           ^^^^^^^ the trait `Impossible` is not implemented for `namespace_mix::c::Item`
474
475error: aborting due to 48 previous errors
476
477Some errors have detailed explanations: E0277, E0423.
478For more information about an error, try `rustc --explain E0277`.