mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-11 07:34:18 +00:00
38d4ac7cea
Discussion previously happened in https://github.com/rust-lang/rust/pull/43498
34 lines
1.3 KiB
Text
34 lines
1.3 KiB
Text
error: long literal lacking separators
|
|
--> $DIR/unreadable_literal.rs:17:16
|
|
|
|
|
LL | let bad = (0b110110_i64, 0x12345678901_usize, 123456_f32, 1.234567_f32);
|
|
| ^^^^^^^^^^^^ help: consider: `0b11_0110_i64`
|
|
|
|
|
= note: `-D clippy::unreadable-literal` implied by `-D warnings`
|
|
|
|
error: long literal lacking separators
|
|
--> $DIR/unreadable_literal.rs:17:30
|
|
|
|
|
LL | let bad = (0b110110_i64, 0x12345678901_usize, 123456_f32, 1.234567_f32);
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider: `0x0123_4567_8901_usize`
|
|
|
|
error: long literal lacking separators
|
|
--> $DIR/unreadable_literal.rs:17:51
|
|
|
|
|
LL | let bad = (0b110110_i64, 0x12345678901_usize, 123456_f32, 1.234567_f32);
|
|
| ^^^^^^^^^^ help: consider: `123_456_f32`
|
|
|
|
error: long literal lacking separators
|
|
--> $DIR/unreadable_literal.rs:17:63
|
|
|
|
|
LL | let bad = (0b110110_i64, 0x12345678901_usize, 123456_f32, 1.234567_f32);
|
|
| ^^^^^^^^^^^^ help: consider: `1.234_567_f32`
|
|
|
|
error: long literal lacking separators
|
|
--> $DIR/unreadable_literal.rs:19:19
|
|
|
|
|
LL | let bad_sci = 1.123456e1;
|
|
| ^^^^^^^^^^ help: consider: `1.123_456e1`
|
|
|
|
error: aborting due to 5 previous errors
|
|
|