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