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 @@ -115,7 +115,7 @@ LL | let fail = 0x8FFF_FFFF_FFFF_FFFE;
115115help: to use as a negative number (decimal `-2`), consider using the type `u64` for the literal and cast it to `i32`
116116 |
117117LL | let fail = 0x8FFF_FFFF_FFFF_FFFEu64 as i32;
118- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
118+ | ++++++++++
119119
120120warning: literal out of range for `i8`
121121 --> $DIR/type-overflow.rs:46:17
@@ -137,7 +137,7 @@ LL | let fail = 0x8000_0000_0000_0000_0000_0000_FFFF_FFFE;
137137help: to use as a negative number (decimal `-2`), consider using the type `u128` for the literal and cast it to `i32`
138138 |
139139LL | let fail = 0x8000_0000_0000_0000_0000_0000_FFFF_FFFEu128 as i32;
140- | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
140+ | +++++++++++
141141
142142warning: 12 warnings emitted
143143
You can’t perform that action at this time.
0 commit comments