fork/rust

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

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

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