rust/tests/ui/unreadable_literal.stderr

34 lines
1.0 KiB
Plaintext
Raw Normal View History

2017-07-19 18:56:32 -05:00
error: long literal lacking separators
2017-08-01 10:54:21 -05:00
--> $DIR/unreadable_literal.rs:7:16
2017-07-19 18:56:32 -05:00
|
7 | let bad = (0b10110_i64, 0x12345678901_usize, 12345_f32, 1.23456_f32);
| ^^^^^^^^^^^
|
= note: `-D unreadable-literal` implied by `-D warnings`
2017-07-31 19:02:53 -05:00
= help: consider: 0b1_0110_i64
2017-07-19 18:56:32 -05:00
error: long literal lacking separators
2017-08-01 10:54:21 -05:00
--> $DIR/unreadable_literal.rs:7:29
2017-07-19 18:56:32 -05:00
|
7 | let bad = (0b10110_i64, 0x12345678901_usize, 12345_f32, 1.23456_f32);
| ^^^^^^^^^^^^^^^^^^^
|
2017-07-31 19:02:53 -05:00
= help: consider: 0x123_4567_8901_usize
2017-07-19 18:56:32 -05:00
error: long literal lacking separators
2017-08-01 10:54:21 -05:00
--> $DIR/unreadable_literal.rs:7:50
2017-07-19 18:56:32 -05:00
|
7 | let bad = (0b10110_i64, 0x12345678901_usize, 12345_f32, 1.23456_f32);
| ^^^^^^^^^
|
2017-07-31 19:02:53 -05:00
= help: consider: 12_345_f32
2017-07-19 18:56:32 -05:00
error: long literal lacking separators
2017-08-01 10:54:21 -05:00
--> $DIR/unreadable_literal.rs:7:61
2017-07-19 18:56:32 -05:00
|
7 | let bad = (0b10110_i64, 0x12345678901_usize, 12345_f32, 1.23456_f32);
| ^^^^^^^^^^^
|
2017-07-31 19:02:53 -05:00
= help: consider: 1.234_56_f32
2017-07-19 18:56:32 -05:00