File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ LL | let fail = 0x8FFF_FFFF_FFFF_FFFE;
117117help: to use as a negative number (decimal `-2`), consider using the type `u64` for the literal and cast it to `i32`
118118 |
119119LL | let fail = 0x8FFF_FFFF_FFFF_FFFEu64 as i32;
120- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
120+ | ++++++++++
121121
122122warning: literal out of range for `i8`
123123 --> $DIR/type-overflow.rs:46:17
@@ -139,7 +139,7 @@ LL | let fail = 0x8000_0000_0000_0000_0000_0000_FFFF_FFFE;
139139help: to use as a negative number (decimal `-2`), consider using the type `u128` for the literal and cast it to `i32`
140140 |
141141LL | let fail = 0x8000_0000_0000_0000_0000_0000_FFFF_FFFEu128 as i32;
142- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
142+ | +++++++++++
143143
144144warning: 12 warnings emitted
145145
You can’t perform that action at this time.
0 commit comments