about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2022-07-15 05:37:32 +0000
committerMichael Goulet <michael@errs.io>2022-07-22 18:58:07 +0000
commit632f9945d60c6338a38d385c59c6c9b5f3f5e94d (patch)
tree15c4f96244fae8301923d7a2c515b4fe39e70e63 /tests
parentbcd2241c9a90c5ec7b30fb8e80edd374d2331a09 (diff)
downloadrust-632f9945d60c6338a38d385c59c6c9b5f3f5e94d.tar.gz
rust-632f9945d60c6338a38d385c59c6c9b5f3f5e94d.zip
Do not resolve associated const when there is no provided value
Diffstat (limited to 'tests')
-rw-r--r--tests/ui/crashes/ice-6252.stderr10
1 files changed, 1 insertions, 9 deletions
diff --git a/tests/ui/crashes/ice-6252.stderr b/tests/ui/crashes/ice-6252.stderr
index a1e37e7317b..638e4a54849 100644
--- a/tests/ui/crashes/ice-6252.stderr
+++ b/tests/ui/crashes/ice-6252.stderr
@@ -30,15 +30,7 @@ LL |     const VAL: T;
 LL | impl<N, M> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {}
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `VAL` in implementation
 
-error: constant expression depends on a generic parameter
-  --> $DIR/ice-6252.rs:13:9
-   |
-LL |     [1; <Multiply<Five, Five>>::VAL];
-   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
-   |
-   = note: this may fail depending on what value the parameter takes
-
-error: aborting due to 4 previous errors
+error: aborting due to 3 previous errors
 
 Some errors have detailed explanations: E0046, E0412.
 For more information about an error, try `rustc --explain E0046`.