We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d388dc commit afa886eCopy full SHA for afa886e
src/tools/miri/tests/fail/erroneous_const2.stderr
@@ -4,9 +4,9 @@ error: any use of this value will cause an error
4
LL | const FOO: u32 = [X - Y, Y - X][(X < Y) as usize];
5
| -------------- ^^^^^ attempt to compute `5_u32 - 6_u32`, which would overflow
6
|
7
- = note: `#[deny(const_err)]` on by default
8
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
9
= note: for more information, see issue #71800 <https://github.com/rust-lang/rust/issues/71800>
+ = note: `#[deny(const_err)]` on by default
10
11
error[E0080]: evaluation of constant value failed
12
--> $DIR/erroneous_const2.rs:LL:CC
0 commit comments