diff options
| author | Camille GILLOT <gillot.camille@gmail.com> | 2022-05-11 18:51:14 +0200 |
|---|---|---|
| committer | Camille GILLOT <gillot.camille@gmail.com> | 2022-05-11 18:51:14 +0200 |
| commit | 31825326e5bb0a19bfc2f1c2b862787c43c0ee5f (patch) | |
| tree | 3eaf028ad3548cbe88dfc0bd5d40bd806f936361 | |
| parent | 670bc53c0350b461b0d9bdb9451261c0d805ecef (diff) | |
Bless clippy.
| -rw-r--r-- | tests/ui/crashes/ice-6252.stderr | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/ui/crashes/ice-6252.stderr b/tests/ui/crashes/ice-6252.stderr index c8239897f3a..d930d486fde 100644 --- a/tests/ui/crashes/ice-6252.stderr +++ b/tests/ui/crashes/ice-6252.stderr @@ -30,7 +30,15 @@ LL | const VAL: T; LL | impl<N, M> TypeVal<usize> for Multiply<N, M> where N: TypeVal<VAL> {} | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ missing `VAL` in implementation -error: aborting due to 3 previous errors +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 Some errors have detailed explanations: E0046, E0412. For more information about an error, try `rustc --explain E0046`. |
