Skip to content

Commit c0cbb66

Browse files
committed
rustup
1 parent 70b97a5 commit c0cbb66

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

rust-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
ca1e68b3229e710c3948a361ee770d846a88e6da
1+
46b8c23f3eb5e4d0e0aa27eb3f20d5b8fc3ed51f

tests/fail/erroneous_const2.stderr

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ error: any use of this value will cause an error
22
--> $DIR/erroneous_const2.rs:LL:CC
33
|
44
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
5+
| -------------- ^^^^^ attempt to compute `5_u32 - 6_u32`, which would overflow
86
|
97
= note: `#[deny(const_err)]` on by default
108
= 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

Comments
 (0)