We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 670bc53 commit 3182532Copy full SHA for 3182532
tests/ui/crashes/ice-6252.stderr
@@ -30,7 +30,15 @@ LL | const VAL: T;
30
LL | impl<N, M> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
31
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `VAL` in implementation
32
33
-error: aborting due to 3 previous errors
+error: constant expression depends on a generic parameter
34
+ --> $DIR/ice-6252.rs:13:9
35
+ |
36
+LL | [1; <Multiply<Five, Five>>::VAL];
37
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
38
39
+ = note: this may fail depending on what value the parameter takes
40
+
41
+error: aborting due to 4 previous errors
42
43
Some errors have detailed explanations: E0046, E0412.
44
For more information about an error, try `rustc --explain E0046`.
0 commit comments