2019-08-18 09:52:59 -05:00
|
|
|
error: integer type suffix should be separated by an underscore
|
2021-06-03 01:41:37 -05:00
|
|
|
--> $DIR/unseparated_prefix_literals.rs:24:18
|
2019-08-18 09:52:59 -05:00
|
|
|
|
|
|
|
|
LL | let _fail1 = 1234i32;
|
|
|
|
| ^^^^^^^ help: add an underscore: `1234_i32`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::unseparated-literal-suffix` implied by `-D warnings`
|
|
|
|
|
|
|
|
error: integer type suffix should be separated by an underscore
|
2021-06-03 01:41:37 -05:00
|
|
|
--> $DIR/unseparated_prefix_literals.rs:25:18
|
2019-08-18 09:52:59 -05:00
|
|
|
|
|
|
|
|
LL | let _fail2 = 1234u32;
|
|
|
|
| ^^^^^^^ help: add an underscore: `1234_u32`
|
|
|
|
|
|
|
|
error: integer type suffix should be separated by an underscore
|
2021-06-03 01:41:37 -05:00
|
|
|
--> $DIR/unseparated_prefix_literals.rs:26:18
|
2019-08-18 09:52:59 -05:00
|
|
|
|
|
|
|
|
LL | let _fail3 = 1234isize;
|
|
|
|
| ^^^^^^^^^ help: add an underscore: `1234_isize`
|
|
|
|
|
|
|
|
error: integer type suffix should be separated by an underscore
|
2021-06-03 01:41:37 -05:00
|
|
|
--> $DIR/unseparated_prefix_literals.rs:27:18
|
2019-08-18 09:52:59 -05:00
|
|
|
|
|
|
|
|
LL | let _fail4 = 1234usize;
|
|
|
|
| ^^^^^^^^^ help: add an underscore: `1234_usize`
|
|
|
|
|
|
|
|
error: integer type suffix should be separated by an underscore
|
2021-06-03 01:41:37 -05:00
|
|
|
--> $DIR/unseparated_prefix_literals.rs:28:18
|
2019-08-18 09:52:59 -05:00
|
|
|
|
|
|
|
|
LL | let _fail5 = 0x123isize;
|
|
|
|
| ^^^^^^^^^^ help: add an underscore: `0x123_isize`
|
|
|
|
|
|
|
|
error: float type suffix should be separated by an underscore
|
2021-06-03 01:41:37 -05:00
|
|
|
--> $DIR/unseparated_prefix_literals.rs:32:19
|
2019-08-18 09:52:59 -05:00
|
|
|
|
|
|
|
|
LL | let _failf1 = 1.5f32;
|
|
|
|
| ^^^^^^ help: add an underscore: `1.5_f32`
|
|
|
|
|
|
|
|
error: float type suffix should be separated by an underscore
|
2021-06-03 01:41:37 -05:00
|
|
|
--> $DIR/unseparated_prefix_literals.rs:33:19
|
2019-08-18 09:52:59 -05:00
|
|
|
|
|
|
|
|
LL | let _failf2 = 1f32;
|
|
|
|
| ^^^^ help: add an underscore: `1_f32`
|
|
|
|
|
2019-08-26 04:11:43 -05:00
|
|
|
error: integer type suffix should be separated by an underscore
|
2021-06-03 01:41:37 -05:00
|
|
|
--> $DIR/unseparated_prefix_literals.rs:16:9
|
2019-08-26 04:11:43 -05:00
|
|
|
|
|
|
|
|
LL | 42usize
|
|
|
|
| ^^^^^^^ help: add an underscore: `42_usize`
|
|
|
|
...
|
|
|
|
LL | let _ = lit_from_macro!();
|
|
|
|
| ----------------- in this macro invocation
|
2020-02-06 21:34:06 -06:00
|
|
|
|
|
2021-02-13 13:52:25 -06:00
|
|
|
= note: this error originates in the macro `lit_from_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-08-26 04:11:43 -05:00
|
|
|
|
|
|
|
error: integer type suffix should be separated by an underscore
|
2021-06-03 01:41:37 -05:00
|
|
|
--> $DIR/unseparated_prefix_literals.rs:41:16
|
2019-08-26 04:11:43 -05:00
|
|
|
|
|
|
|
|
LL | assert_eq!(4897u32, 32223);
|
|
|
|
| ^^^^^^^ help: add an underscore: `4897_u32`
|
|
|
|
|
|
|
|
error: aborting due to 9 previous errors
|
2019-08-18 09:52:59 -05:00
|
|
|
|