Skip to content

Commit

Permalink
Add comment on case to mark the original issue
Browse files Browse the repository at this point in the history
  • Loading branch information
s-cerevisiae committed Jan 12, 2025
1 parent 4a85755 commit f52724c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/ui/lint/type-overflow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ fn main() {
//~^ WARNING literal out of range for `i32`
//~| HELP consider using the type `u128` instead

let fail = -0x8000_0000_0000_0000_0000_0000_0000_0000;
let fail = -0x8000_0000_0000_0000_0000_0000_0000_0000; // issue #131849
//~^ WARNING literal out of range for `i32`
//~| HELP consider using the type `i128` instead

Expand Down
2 changes: 1 addition & 1 deletion tests/ui/lint/type-overflow.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ LL | let fail = 0x8000_0000_0000_0000_0000_0000_0000_0000;
warning: literal out of range for `i32`
--> $DIR/type-overflow.rs:31:17
|
LL | let fail = -0x8000_0000_0000_0000_0000_0000_0000_0000;
LL | let fail = -0x8000_0000_0000_0000_0000_0000_0000_0000; // issue #131849
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= note: the literal `0x8000_0000_0000_0000_0000_0000_0000_0000` (decimal `170141183460469231731687303715884105728`) does not fit into the type `i32`
Expand Down

0 comments on commit f52724c

Please sign in to comment.