Skip to content

Commit aaa017b

Browse files
committed
maybe fix ice-6252, idk
1 parent bacb3e3 commit aaa017b

File tree

1 file changed

+17
-14
lines changed

1 file changed

+17
-14
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
error[E0412]: cannot find type `PhantomData` in this scope
2-
--> tests/ui/crashes/ice-6252.rs:9:9
3-
|
4-
LL | _n: PhantomData,
5-
| ^^^^^^^^^^^ not found in this scope
6-
|
7-
help: consider importing one of these items
8-
|
9-
LL + use core::marker::PhantomData;
10-
|
11-
LL + use std::marker::PhantomData;
12-
|
13-
141
error[E0412]: cannot find type `VAL` in this scope
152
--> tests/ui/crashes/ice-6252.rs:11:63
163
|
@@ -22,6 +9,22 @@ help: you might be missing a type parameter
229
LL | impl<N, M, VAL> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
2310
| +++++
2411

12+
error[E0107]: missing generics for struct `std::marker::PhantomData`
13+
--> tests/ui/crashes/ice-6252.rs:9:9
14+
|
15+
LL | _n: PhantomData,
16+
| ^^^^^^^^^^^ expected 1 generic argument
17+
|
18+
note: struct defined here, with 1 generic parameter: `T`
19+
--> F:/rust/library/core/src/marker.rs:740:12
20+
|
21+
LL | pub struct PhantomData<T: ?Sized>;
22+
| ^^^^^^^^^^^ -
23+
help: add missing generic argument
24+
|
25+
LL | _n: PhantomData<T>,
26+
| +++
27+
2528
error[E0046]: not all trait items implemented, missing: `VAL`
2629
--> tests/ui/crashes/ice-6252.rs:11:1
2730
|
@@ -33,5 +36,5 @@ LL | impl<N, M> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
3336

3437
error: aborting due to 3 previous errors
3538

36-
Some errors have detailed explanations: E0046, E0412.
39+
Some errors have detailed explanations: E0046, E0107, E0412.
3740
For more information about an error, try `rustc --explain E0046`.

0 commit comments

Comments
 (0)