We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 602a3dc + c0cbb66 commit 24c5eafCopy full SHA for 24c5eaf
rust-version
@@ -1 +1 @@
1
-ca1e68b3229e710c3948a361ee770d846a88e6da
+46b8c23f3eb5e4d0e0aa27eb3f20d5b8fc3ed51f
tests/fail/erroneous_const2.stderr
@@ -2,9 +2,7 @@ error: any use of this value will cause an error
2
--> $DIR/erroneous_const2.rs:LL:CC
3
|
4
LL | const FOO: u32 = [X - Y, Y - X][(X < Y) as usize];
5
- | ------------------^^^^^---------------------------
6
- | |
7
- | attempt to compute `5_u32 - 6_u32`, which would overflow
+ | -------------- ^^^^^ attempt to compute `5_u32 - 6_u32`, which would overflow
8
9
= note: `#[deny(const_err)]` on by default
10
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
0 commit comments