about summary refs log tree commit diff
path: root/src/tools/clippy/tests
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-05-11 18:51:14 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2022-05-11 18:51:14 +0200
commitdacf1185cb9c6aa9bc9770c5202dce6c35d6604e (patch)
tree0a9812c3945bf2cd307cf6459dd151b7d8c9602a /src/tools/clippy/tests
parent6cfe52c094fcd9897d8c2b4ea713198a58000898 (diff)
downloadrust-dacf1185cb9c6aa9bc9770c5202dce6c35d6604e.tar.gz
rust-dacf1185cb9c6aa9bc9770c5202dce6c35d6604e.zip
Bless clippy.
Diffstat (limited to 'src/tools/clippy/tests')
-rw-r--r--src/tools/clippy/tests/ui/crashes/ice-6252.stderr10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/tools/clippy/tests/ui/crashes/ice-6252.stderr b/src/tools/clippy/tests/ui/crashes/ice-6252.stderr
index c8239897f3a..d930d486fde 100644
--- a/src/tools/clippy/tests/ui/crashes/ice-6252.stderr
+++ b/src/tools/clippy/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`.