mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-29 02:03:53 +00:00
42000c6cf9
Add `rustc --explain E0308` line to relevant tests
29 lines
1.1 KiB
Plaintext
29 lines
1.1 KiB
Plaintext
error: long literal lacking separators
|
|
--> $DIR/unreadable_literal.rs:7:16
|
|
|
|
|
7 | let bad = (0b10110_i64, 0x12345678901_usize, 12345_f32, 1.23456_f32);
|
|
| ^^^^^^^^^^^ help: consider: `0b1_0110_i64`
|
|
|
|
|
= note: `-D unreadable-literal` implied by `-D warnings`
|
|
|
|
error: long literal lacking separators
|
|
--> $DIR/unreadable_literal.rs:7:29
|
|
|
|
|
7 | let bad = (0b10110_i64, 0x12345678901_usize, 12345_f32, 1.23456_f32);
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider: `0x123_4567_8901_usize`
|
|
|
|
error: long literal lacking separators
|
|
--> $DIR/unreadable_literal.rs:7:50
|
|
|
|
|
7 | let bad = (0b10110_i64, 0x12345678901_usize, 12345_f32, 1.23456_f32);
|
|
| ^^^^^^^^^ help: consider: `12_345_f32`
|
|
|
|
error: long literal lacking separators
|
|
--> $DIR/unreadable_literal.rs:7:61
|
|
|
|
|
7 | let bad = (0b10110_i64, 0x12345678901_usize, 12345_f32, 1.23456_f32);
|
|
| ^^^^^^^^^^^ help: consider: `1.234_56_f32`
|
|
|
|
error: aborting due to 4 previous errors
|
|
|