mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-18 17:15:05 +00:00
61 lines
2.1 KiB
Text
61 lines
2.1 KiB
Text
error: integer type suffix should be separated by an underscore
|
|
--> $DIR/unseparated_prefix_literals.rs:16:18
|
|
|
|
|
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
|
|
--> $DIR/unseparated_prefix_literals.rs:17:18
|
|
|
|
|
LL | let _fail2 = 1234u32;
|
|
| ^^^^^^^ help: add an underscore: `1234_u32`
|
|
|
|
error: integer type suffix should be separated by an underscore
|
|
--> $DIR/unseparated_prefix_literals.rs:18:18
|
|
|
|
|
LL | let _fail3 = 1234isize;
|
|
| ^^^^^^^^^ help: add an underscore: `1234_isize`
|
|
|
|
error: integer type suffix should be separated by an underscore
|
|
--> $DIR/unseparated_prefix_literals.rs:19:18
|
|
|
|
|
LL | let _fail4 = 1234usize;
|
|
| ^^^^^^^^^ help: add an underscore: `1234_usize`
|
|
|
|
error: integer type suffix should be separated by an underscore
|
|
--> $DIR/unseparated_prefix_literals.rs:20:18
|
|
|
|
|
LL | let _fail5 = 0x123isize;
|
|
| ^^^^^^^^^^ help: add an underscore: `0x123_isize`
|
|
|
|
error: float type suffix should be separated by an underscore
|
|
--> $DIR/unseparated_prefix_literals.rs:24:19
|
|
|
|
|
LL | let _failf1 = 1.5f32;
|
|
| ^^^^^^ help: add an underscore: `1.5_f32`
|
|
|
|
error: float type suffix should be separated by an underscore
|
|
--> $DIR/unseparated_prefix_literals.rs:25:19
|
|
|
|
|
LL | let _failf2 = 1f32;
|
|
| ^^^^ help: add an underscore: `1_f32`
|
|
|
|
error: integer type suffix should be separated by an underscore
|
|
--> $DIR/unseparated_prefix_literals.rs:8:9
|
|
|
|
|
LL | 42usize
|
|
| ^^^^^^^ help: add an underscore: `42_usize`
|
|
...
|
|
LL | let _ = lit_from_macro!();
|
|
| ----------------- in this macro invocation
|
|
|
|
error: integer type suffix should be separated by an underscore
|
|
--> $DIR/unseparated_prefix_literals.rs:33:16
|
|
|
|
|
LL | assert_eq!(4897u32, 32223);
|
|
| ^^^^^^^ help: add an underscore: `4897_u32`
|
|
|
|
error: aborting due to 9 previous errors
|
|
|