File tree 1 file changed +2
-2
lines changed
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;
117
117
help: to use as a negative number (decimal `-2`), consider using the type `u64` for the literal and cast it to `i32`
118
118
|
119
119
LL | let fail = 0x8FFF_FFFF_FFFF_FFFEu64 as i32;
120
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
120
+ | ++++++++++
121
121
122
122
warning: literal out of range for `i8`
123
123
--> $DIR/type-overflow.rs:46:17
@@ -139,7 +139,7 @@ LL | let fail = 0x8000_0000_0000_0000_0000_0000_FFFF_FFFE;
139
139
help: to use as a negative number (decimal `-2`), consider using the type `u128` for the literal and cast it to `i32`
140
140
|
141
141
LL | let fail = 0x8000_0000_0000_0000_0000_0000_FFFF_FFFEu128 as i32;
142
- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
142
+ | +++++++++++
143
143
144
144
warning: 12 warnings emitted
145
145
You can’t perform that action at this time.
0 commit comments