rust/tests/ui/unreadable_literal.stderr

36 lines
1.1 KiB
Plaintext
Raw Normal View History

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