about summary refs log tree commit diff
path: root/tests/ui/consts/const-eval/const-eval-overflow-2.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/consts/const-eval/const-eval-overflow-2.stderr')
-rw-r--r--tests/ui/consts/const-eval/const-eval-overflow-2.stderr4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/consts/const-eval/const-eval-overflow-2.stderr b/tests/ui/consts/const-eval/const-eval-overflow-2.stderr
index 5599ff931e8..90b94600aed 100644
--- a/tests/ui/consts/const-eval/const-eval-overflow-2.stderr
+++ b/tests/ui/consts/const-eval/const-eval-overflow-2.stderr
@@ -1,8 +1,8 @@
-error[E0080]: evaluation of constant value failed
+error[E0080]: attempt to negate `i8::MIN`, which would overflow
   --> $DIR/const-eval-overflow-2.rs:11:25
    |
 LL | const NEG_NEG_128: i8 = -NEG_128;
-   |                         ^^^^^^^^ attempt to negate `i8::MIN`, which would overflow
+   |                         ^^^^^^^^ evaluation of constant value failed here
 
 error: aborting due to 1 previous error