mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 08:05:12 +00:00
35 lines
1.3 KiB
Plaintext
35 lines
1.3 KiB
Plaintext
error: long literal lacking separators
|
|
--> $DIR/unreadable_literal.rs:7:16
|
|
|
|
|
7 | let bad = (0b110110_i64, 0x12345678901_usize, 123456_f32, 1.234567_f32);
|
|
| ^^^^^^^^^^^^ help: consider: `0b11_0110_i64`
|
|
|
|
|
= note: `-D unreadable-literal` implied by `-D warnings`
|
|
|
|
error: long literal lacking separators
|
|
--> $DIR/unreadable_literal.rs:7:30
|
|
|
|
|
7 | 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:7:51
|
|
|
|
|
7 | 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:7:63
|
|
|
|
|
7 | 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:9:19
|
|
|
|
|
9 | let bad_sci = 1.123456e1;
|
|
| ^^^^^^^^^^ help: consider: `1.123_456e1`
|
|
|
|
error: aborting due to 5 previous errors
|
|
|