1
1
error[E0412]: cannot find type `PhantomData` in this scope
2
- --> $DIR/issue-77919.rs:10 :9
2
+ --> $DIR/issue-77919.rs:9 :9
3
3
|
4
4
LL | _n: PhantomData,
5
5
| ^^^^^^^^^^^ not found in this scope
@@ -10,31 +10,23 @@ LL | use std::marker::PhantomData;
10
10
|
11
11
12
12
error[E0412]: cannot find type `VAL` in this scope
13
- --> $DIR/issue-77919.rs:12 :63
13
+ --> $DIR/issue-77919.rs:11 :63
14
14
|
15
15
LL | impl<N, M> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
16
16
| - ^^^ not found in this scope
17
17
| |
18
18
| help: you might be missing a type parameter: `, VAL`
19
19
20
20
error[E0046]: not all trait items implemented, missing: `VAL`
21
- --> $DIR/issue-77919.rs:12 :1
21
+ --> $DIR/issue-77919.rs:11 :1
22
22
|
23
23
LL | const VAL: T;
24
24
| ------------ `VAL` from trait
25
25
...
26
26
LL | impl<N, M> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
27
27
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `VAL` in implementation
28
28
29
- error: constant expression depends on a generic parameter
30
- --> $DIR/issue-77919.rs:2:9
31
- |
32
- LL | [1; <Multiply<Five, Five>>::VAL];
33
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
34
- |
35
- = note: this may fail depending on what value the parameter takes
36
-
37
- error: aborting due to 4 previous errors
29
+ error: aborting due to 3 previous errors
38
30
39
31
Some errors have detailed explanations: E0046, E0412.
40
32
For more information about an error, try `rustc --explain E0046`.
0 commit comments