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
-
14
1
error[E0412]: cannot find type `VAL` in this scope
15
2
--> tests/ui/crashes/ice-6252.rs:11:63
16
3
|
@@ -22,6 +9,22 @@ help: you might be missing a type parameter
22
9
LL | impl<N, M, VAL> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
23
10
| +++++
24
11
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
+
25
28
error[E0046]: not all trait items implemented, missing: `VAL`
26
29
--> tests/ui/crashes/ice-6252.rs:11:1
27
30
|
@@ -33,5 +36,5 @@ LL | impl<N, M> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
33
36
34
37
error: aborting due to 3 previous errors
35
38
36
- Some errors have detailed explanations: E0046, E0412.
39
+ Some errors have detailed explanations: E0046, E0107, E0412.
37
40
For more information about an error, try `rustc --explain E0046`.
0 commit comments