Skip to content

Commit f52724c

Browse files
committed
Add comment on case to mark the original issue
1 parent 4a85755 commit f52724c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/ui/lint/type-overflow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

tests/ui/lint/type-overflow.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ LL | let fail = 0x8000_0000_0000_0000_0000_0000_0000_0000;
7777
warning: 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`

0 commit comments

Comments
 (0)