11error[E0412]: cannot find type `PhantomData` in this scope
2- --> $DIR/issue-77919.rs:10 :9
2+ --> $DIR/issue-77919.rs:9 :9
33 |
44LL | _n: PhantomData,
55 | ^^^^^^^^^^^ not found in this scope
@@ -10,31 +10,23 @@ LL | use std::marker::PhantomData;
1010 |
1111
1212error[E0412]: cannot find type `VAL` in this scope
13- --> $DIR/issue-77919.rs:12 :63
13+ --> $DIR/issue-77919.rs:11 :63
1414 |
1515LL | impl<N, M> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
1616 | - ^^^ not found in this scope
1717 | |
1818 | help: you might be missing a type parameter: `, VAL`
1919
2020error[E0046]: not all trait items implemented, missing: `VAL`
21- --> $DIR/issue-77919.rs:12 :1
21+ --> $DIR/issue-77919.rs:11 :1
2222 |
2323LL | const VAL: T;
2424 | ------------ `VAL` from trait
2525...
2626LL | impl<N, M> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
2727 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `VAL` in implementation
2828
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
3830
3931Some errors have detailed explanations: E0046, E0412.
4032For more information about an error, try `rustc --explain E0046`.
0 commit comments