From 4b2ab35f2ba93a47b289b98318362351a838b03d Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Fri, 23 Sep 2022 13:41:15 +0400 Subject: [PATCH] bless a miri test --- tests/fail/erroneous_const2.stderr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/fail/erroneous_const2.stderr b/tests/fail/erroneous_const2.stderr index 05ed8ea1c1..4d402257b8 100644 --- a/tests/fail/erroneous_const2.stderr +++ b/tests/fail/erroneous_const2.stderr @@ -4,9 +4,9 @@ error: any use of this value will cause an error LL | const FOO: u32 = [X - Y, Y - X][(X < Y) as usize]; | -------------- ^^^^^ attempt to compute `5_u32 - 6_u32`, which would overflow | - = note: `#[deny(const_err)]` on by default = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! = note: for more information, see issue #71800 + = note: `#[deny(const_err)]` on by default error[E0080]: evaluation of constant value failed --> $DIR/erroneous_const2.rs:LL:CC