You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
= note: the literal `0xffff_ffff_ffff_ffff_ffff_usize` (decimal `1208925819614629174706175`) does not fit into the type `usize` and will become `18446744073709551615usize`
= note: the literal `0x8000_0000_0000_0000_isize` (decimal `9223372036854775808`) does not fit into the type `isize` and will become `-9223372036854775808isize`
41
+
26
42
error: literal out of range for `i32`
27
-
--> $DIR/no-inline-literals-out-of-range.rs:6:24
43
+
--> $DIR/no-inline-literals-out-of-range.rs:12:24
28
44
|
29
45
LL | format_args!("{}", 0xffff_ffff); // treat unsuffixed literals as i32
30
46
| ^^^^^^^^^^^
@@ -36,5 +52,5 @@ help: to use as a negative number (decimal `-1`), consider using the type `u32`
36
52
LL | format_args!("{}", 0xffff_ffffu32 as i32); // treat unsuffixed literals as i32
0 commit comments