2018-10-31 11:14:55 -05:00
|
|
|
error: digits of hex or binary literal not grouped by four
|
|
|
|
--> $DIR/unreadable_literal.rs:17:9
|
|
|
|
|
|
|
|
|
LL | 0x1_234_567,
|
|
|
|
| ^^^^^^^^^^^ help: consider: `0x0123_4567`
|
|
|
|
|
|
2020-10-25 10:31:24 -05:00
|
|
|
= note: `-D clippy::unusual-byte-groupings` implied by `-D warnings`
|
2018-10-31 11:14:55 -05:00
|
|
|
|
2017-07-19 18:56:32 -05:00
|
|
|
error: long literal lacking separators
|
2019-10-25 10:17:13 -05:00
|
|
|
--> $DIR/unreadable_literal.rs:25:17
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2019-10-25 10:17:13 -05:00
|
|
|
LL | let _bad = (0b110110_i64, 0xcafebabe_usize, 123456_f32, 1.234567_f32);
|
|
|
|
| ^^^^^^^^^^^^ help: consider: `0b11_0110_i64`
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::unreadable-literal` implied by `-D warnings`
|
2017-07-19 18:56:32 -05:00
|
|
|
|
|
|
|
error: long literal lacking separators
|
2019-10-25 10:17:13 -05:00
|
|
|
--> $DIR/unreadable_literal.rs:25:31
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2019-10-25 10:17:13 -05:00
|
|
|
LL | let _bad = (0b110110_i64, 0xcafebabe_usize, 123456_f32, 1.234567_f32);
|
|
|
|
| ^^^^^^^^^^^^^^^^ help: consider: `0xcafe_babe_usize`
|
2017-07-19 18:56:32 -05:00
|
|
|
|
|
|
|
error: long literal lacking separators
|
2019-10-25 10:17:13 -05:00
|
|
|
--> $DIR/unreadable_literal.rs:25:49
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2019-10-25 10:17:13 -05:00
|
|
|
LL | let _bad = (0b110110_i64, 0xcafebabe_usize, 123456_f32, 1.234567_f32);
|
|
|
|
| ^^^^^^^^^^ help: consider: `123_456_f32`
|
2017-07-19 18:56:32 -05:00
|
|
|
|
|
|
|
error: long literal lacking separators
|
2019-10-25 10:17:13 -05:00
|
|
|
--> $DIR/unreadable_literal.rs:25:61
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2019-10-25 10:17:13 -05:00
|
|
|
LL | let _bad = (0b110110_i64, 0xcafebabe_usize, 123456_f32, 1.234567_f32);
|
|
|
|
| ^^^^^^^^^^^^ 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-10-25 10:17:13 -05:00
|
|
|
--> $DIR/unreadable_literal.rs:27:20
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2019-10-25 10:17:13 -05:00
|
|
|
LL | let _bad_sci = 1.123456e1;
|
|
|
|
| ^^^^^^^^^^ 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-10-25 10:17:13 -05:00
|
|
|
--> $DIR/unreadable_literal.rs:29:18
|
2019-03-15 01:50:31 -05:00
|
|
|
|
|
2019-10-25 10:17:13 -05:00
|
|
|
LL | let _fail9 = 0xabcdef;
|
|
|
|
| ^^^^^^^^ help: consider: `0x00ab_cdef`
|
2019-03-15 01:50:31 -05:00
|
|
|
|
|
|
|
error: long literal lacking separators
|
2019-10-25 10:17:13 -05:00
|
|
|
--> $DIR/unreadable_literal.rs:30:24
|
2019-03-15 01:50:31 -05:00
|
|
|
|
|
2019-10-25 10:17:13 -05:00
|
|
|
LL | let _fail10: u32 = 0xBAFEBAFE;
|
|
|
|
| ^^^^^^^^^^ help: consider: `0xBAFE_BAFE`
|
2019-03-15 01:50:31 -05:00
|
|
|
|
|
|
|
error: long literal lacking separators
|
2019-10-25 10:17:13 -05:00
|
|
|
--> $DIR/unreadable_literal.rs:31:19
|
2019-03-15 01:50:31 -05:00
|
|
|
|
|
2019-10-25 10:17:13 -05:00
|
|
|
LL | let _fail11 = 0xabcdeff;
|
|
|
|
| ^^^^^^^^^ help: consider: `0x0abc_deff`
|
2019-03-15 01:50:31 -05:00
|
|
|
|
|
|
|
error: long literal lacking separators
|
2019-10-25 10:17:13 -05:00
|
|
|
--> $DIR/unreadable_literal.rs:32:25
|
2019-03-15 01:50:31 -05:00
|
|
|
|
|
2019-10-25 10:17:13 -05:00
|
|
|
LL | let _fail12: i128 = 0xabcabcabcabcabcabc;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: consider: `0x00ab_cabc_abca_bcab_cabc`
|
2019-03-15 01:50:31 -05:00
|
|
|
|
2018-10-31 11:14:55 -05:00
|
|
|
error: aborting due to 10 previous errors
|
2018-01-16 10:06:27 -06:00
|
|
|
|