2017-07-19 18:56:32 -05:00
|
|
|
error: long literal lacking separators
|
2019-05-15 07:57:56 -05:00
|
|
|
--> $DIR/unreadable_literal.rs:25:16
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let bad = (0b110110_i64, 0x12345678901_usize, 123456_f32, 1.234567_f32);
|
2018-10-06 11:18:06 -05:00
|
|
|
| ^^^^^^^^^^^^ help: consider: `0b11_0110_i64`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::unreadable-literal` implied by `-D warnings`
|
2017-07-19 18:56:32 -05:00
|
|
|
|
|
|
|
error: long literal lacking separators
|
2019-05-15 07:57:56 -05:00
|
|
|
--> $DIR/unreadable_literal.rs:25:30
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let bad = (0b110110_i64, 0x12345678901_usize, 123456_f32, 1.234567_f32);
|
2018-10-06 11:18:06 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^ help: consider: `0x0123_4567_8901_usize`
|
2017-07-19 18:56:32 -05:00
|
|
|
|
|
|
|
error: long literal lacking separators
|
2019-05-15 07:57:56 -05:00
|
|
|
--> $DIR/unreadable_literal.rs:25:51
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let bad = (0b110110_i64, 0x12345678901_usize, 123456_f32, 1.234567_f32);
|
2018-10-06 11:18:06 -05:00
|
|
|
| ^^^^^^^^^^ help: consider: `123_456_f32`
|
2017-07-19 18:56:32 -05:00
|
|
|
|
|
|
|
error: long literal lacking separators
|
2019-05-15 07:57:56 -05:00
|
|
|
--> $DIR/unreadable_literal.rs:25:63
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let bad = (0b110110_i64, 0x12345678901_usize, 123456_f32, 1.234567_f32);
|
2018-10-06 11:18:06 -05:00
|
|
|
| ^^^^^^^^^^^^ help: consider: `1.234_567_f32`
|
2017-07-19 18:56:32 -05:00
|
|
|
|
2018-03-04 09:28:34 -06:00
|
|
|
error: long literal lacking separators
|
2019-05-15 07:57:56 -05:00
|
|
|
--> $DIR/unreadable_literal.rs:27:19
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let bad_sci = 1.123456e1;
|
2018-10-06 11:18:06 -05:00
|
|
|
| ^^^^^^^^^^ help: consider: `1.123_456e1`
|
2018-03-04 09:28:34 -06:00
|
|
|
|
2019-03-15 01:50:31 -05:00
|
|
|
error: long literal lacking separators
|
2019-05-15 07:57:56 -05:00
|
|
|
--> $DIR/unreadable_literal.rs:29:17
|
2019-03-15 01:50:31 -05:00
|
|
|
|
|
|
|
|
LL | let fail9 = 0xabcdef;
|
|
|
|
| ^^^^^^^^ help: consider: `0x00ab_cdef`
|
|
|
|
|
|
|
|
error: long literal lacking separators
|
2019-05-15 07:57:56 -05:00
|
|
|
--> $DIR/unreadable_literal.rs:30:23
|
2019-03-15 01:50:31 -05:00
|
|
|
|
|
|
|
|
LL | let fail10: u32 = 0xBAFEBAFE;
|
|
|
|
| ^^^^^^^^^^ help: consider: `0xBAFE_BAFE`
|
|
|
|
|
|
|
|
error: long literal lacking separators
|
2019-05-15 07:57:56 -05:00
|
|
|
--> $DIR/unreadable_literal.rs:31:18
|
2019-03-15 01:50:31 -05:00
|
|
|
|
|
|
|
|
LL | let fail11 = 0xabcdeff;
|
|
|
|
| ^^^^^^^^^ help: consider: `0x0abc_deff`
|
|
|
|
|
|
|
|
error: long literal lacking separators
|
2019-05-15 07:57:56 -05:00
|
|
|
--> $DIR/unreadable_literal.rs:32:24
|
2019-03-15 01:50:31 -05:00
|
|
|
|
|
|
|
|
LL | let fail12: i128 = 0xabcabcabcabcabcabc;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: consider: `0x00ab_cabc_abca_bcab_cabc`
|
|
|
|
|
|
|
|
error: aborting due to 9 previous errors
|
2018-01-16 10:06:27 -06:00
|
|
|
|