File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ fn main() {
2828 //~^ WARNING literal out of range for `i32`
2929 //~| HELP consider using the type `u128` instead
3030
31- let fail = -0x8000_0000_0000_0000_0000_0000_0000_0000 ;
31+ let fail = -0x8000_0000_0000_0000_0000_0000_0000_0000 ; // issue #131849
3232 //~^ WARNING literal out of range for `i32`
3333 //~| HELP consider using the type `i128` instead
3434
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ LL | let fail = 0x8000_0000_0000_0000_0000_0000_0000_0000;
7777warning: literal out of range for `i32`
7878 --> $DIR/type-overflow.rs:31:17
7979 |
80- LL | let fail = -0x8000_0000_0000_0000_0000_0000_0000_0000;
80+ LL | let fail = -0x8000_0000_0000_0000_0000_0000_0000_0000; // issue #131849
8181 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8282 |
8383 = note: the literal `0x8000_0000_0000_0000_0000_0000_0000_0000` (decimal `170141183460469231731687303715884105728`) does not fit into the type `i32`
You can’t perform that action at this time.
0 commit comments