Skip to content

Commit 632f994

Browse files
Do not resolve associated const when there is no provided value
1 parent bcd2241 commit 632f994

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

tests/ui/crashes/ice-6252.stderr

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,7 @@ LL | const VAL: T;
3030
LL | impl<N, M> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
3131
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `VAL` in implementation
3232

33-
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
33+
error: aborting due to 3 previous errors
4234

4335
Some errors have detailed explanations: E0046, E0412.
4436
For more information about an error, try `rustc --explain E0046`.

0 commit comments

Comments
 (0)