2017-07-19 19:56:32 -04:00
|
|
|
error: long literal lacking separators
|
2022-07-25 22:36:03 +02:00
|
|
|
--> $DIR/unreadable_literal.rs:34:17
|
2018-10-06 09:18:06 -07:00
|
|
|
|
|
2021-12-31 21:13:07 -08:00
|
|
|
LL | let _bad = (0b110110_i64, 0x12345678_usize, 123456_f32, 1.234567_f32);
|
2019-10-25 22:17:13 +07:00
|
|
|
| ^^^^^^^^^^^^ help: consider: `0b11_0110_i64`
|
2018-10-06 09:18:06 -07:00
|
|
|
|
|
|
|
|
= note: `-D clippy::unreadable-literal` implied by `-D warnings`
|
2017-07-19 19:56:32 -04:00
|
|
|
|
|
|
|
error: long literal lacking separators
|
2022-07-25 22:36:03 +02:00
|
|
|
--> $DIR/unreadable_literal.rs:34:31
|
2018-10-06 09:18:06 -07:00
|
|
|
|
|
2021-12-31 21:13:07 -08:00
|
|
|
LL | let _bad = (0b110110_i64, 0x12345678_usize, 123456_f32, 1.234567_f32);
|
|
|
|
| ^^^^^^^^^^^^^^^^ help: consider: `0x1234_5678_usize`
|
2017-07-19 19:56:32 -04:00
|
|
|
|
|
|
|
error: long literal lacking separators
|
2022-07-25 22:36:03 +02:00
|
|
|
--> $DIR/unreadable_literal.rs:34:49
|
2018-10-06 09:18:06 -07:00
|
|
|
|
|
2021-12-31 21:13:07 -08:00
|
|
|
LL | let _bad = (0b110110_i64, 0x12345678_usize, 123456_f32, 1.234567_f32);
|
2019-10-25 22:17:13 +07:00
|
|
|
| ^^^^^^^^^^ help: consider: `123_456_f32`
|
2017-07-19 19:56:32 -04:00
|
|
|
|
|
|
|
error: long literal lacking separators
|
2022-07-25 22:36:03 +02:00
|
|
|
--> $DIR/unreadable_literal.rs:34:61
|
2018-10-06 09:18:06 -07:00
|
|
|
|
|
2021-12-31 21:13:07 -08:00
|
|
|
LL | let _bad = (0b110110_i64, 0x12345678_usize, 123456_f32, 1.234567_f32);
|
2019-10-25 22:17:13 +07:00
|
|
|
| ^^^^^^^^^^^^ help: consider: `1.234_567_f32`
|
2017-07-19 19:56:32 -04:00
|
|
|
|
2018-03-04 16:28:34 +01:00
|
|
|
error: long literal lacking separators
|
2022-07-25 22:36:03 +02:00
|
|
|
--> $DIR/unreadable_literal.rs:36:20
|
2018-10-06 09:18:06 -07:00
|
|
|
|
|
2019-10-25 22:17:13 +07:00
|
|
|
LL | let _bad_sci = 1.123456e1;
|
|
|
|
| ^^^^^^^^^^ help: consider: `1.123_456e1`
|
2018-03-04 16:28:34 +01:00
|
|
|
|
2019-03-15 07:50:31 +01:00
|
|
|
error: long literal lacking separators
|
2022-07-25 22:36:03 +02:00
|
|
|
--> $DIR/unreadable_literal.rs:38:18
|
2019-03-15 07:50:31 +01:00
|
|
|
|
|
2020-12-06 15:01:03 +01:00
|
|
|
LL | let _fail1 = 0xabcdef;
|
2019-10-25 22:17:13 +07:00
|
|
|
| ^^^^^^^^ help: consider: `0x00ab_cdef`
|
2019-03-15 07:50:31 +01:00
|
|
|
|
|
|
|
error: long literal lacking separators
|
2022-07-25 22:36:03 +02:00
|
|
|
--> $DIR/unreadable_literal.rs:39:23
|
2019-03-15 07:50:31 +01:00
|
|
|
|
|
2020-12-06 15:01:03 +01:00
|
|
|
LL | let _fail2: u32 = 0xBAFEBAFE;
|
|
|
|
| ^^^^^^^^^^ help: consider: `0xBAFE_BAFE`
|
2019-03-15 07:50:31 +01:00
|
|
|
|
|
|
|
error: long literal lacking separators
|
2022-07-25 22:36:03 +02:00
|
|
|
--> $DIR/unreadable_literal.rs:40:18
|
2019-03-15 07:50:31 +01:00
|
|
|
|
|
2020-12-06 15:01:03 +01:00
|
|
|
LL | let _fail3 = 0xabcdeff;
|
|
|
|
| ^^^^^^^^^ help: consider: `0x0abc_deff`
|
2019-03-15 07:50:31 +01:00
|
|
|
|
|
|
|
error: long literal lacking separators
|
2022-07-25 22:36:03 +02:00
|
|
|
--> $DIR/unreadable_literal.rs:41:24
|
2019-03-15 07:50:31 +01:00
|
|
|
|
|
2020-12-06 15:01:03 +01:00
|
|
|
LL | let _fail4: i128 = 0xabcabcabcabcabcabc;
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^ help: consider: `0x00ab_cabc_abca_bcab_cabc`
|
2019-03-15 07:50:31 +01:00
|
|
|
|
2020-12-06 15:01:03 +01:00
|
|
|
error: long literal lacking separators
|
2022-07-25 22:36:03 +02:00
|
|
|
--> $DIR/unreadable_literal.rs:42:18
|
2020-12-06 15:01:03 +01:00
|
|
|
|
|
|
|
|
LL | let _fail5 = 1.100300400;
|
|
|
|
| ^^^^^^^^^^^ help: consider: `1.100_300_400`
|
|
|
|
|
2023-02-16 09:55:39 +00:00
|
|
|
error: aborting due to 10 previous errors
|
2018-01-16 17:06:27 +01:00
|
|
|
|