2017-07-19 18:56:32 -05:00
|
|
|
error: digits grouped inconsistently by underscores
|
2020-04-04 14:47:16 -05:00
|
|
|
--> $DIR/inconsistent_digit_grouping.rs:26:16
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let bad = (1_23_456, 1_234_5678, 1234_567, 1_234.5678_f32, 1.234_5678_f32);
|
2018-10-06 11:18:06 -05:00
|
|
|
| ^^^^^^^^ help: consider: `123_456`
|
|
|
|
|
|
|
|
|
= note: `-D clippy::inconsistent-digit-grouping` implied by `-D warnings`
|
2017-07-19 18:56:32 -05:00
|
|
|
|
|
|
|
error: digits grouped inconsistently by underscores
|
2020-04-04 14:47:16 -05:00
|
|
|
--> $DIR/inconsistent_digit_grouping.rs:26:26
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let bad = (1_23_456, 1_234_5678, 1234_567, 1_234.5678_f32, 1.234_5678_f32);
|
2018-10-06 11:18:06 -05:00
|
|
|
| ^^^^^^^^^^ help: consider: `12_345_678`
|
2017-07-19 18:56:32 -05:00
|
|
|
|
|
|
|
error: digits grouped inconsistently by underscores
|
2020-04-04 14:47:16 -05:00
|
|
|
--> $DIR/inconsistent_digit_grouping.rs:26:38
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let bad = (1_23_456, 1_234_5678, 1234_567, 1_234.5678_f32, 1.234_5678_f32);
|
2018-10-06 11:18:06 -05:00
|
|
|
| ^^^^^^^^ help: consider: `1_234_567`
|
2017-07-19 18:56:32 -05:00
|
|
|
|
|
|
|
error: digits grouped inconsistently by underscores
|
2020-04-04 14:47:16 -05:00
|
|
|
--> $DIR/inconsistent_digit_grouping.rs:26:48
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let bad = (1_23_456, 1_234_5678, 1234_567, 1_234.5678_f32, 1.234_5678_f32);
|
2018-10-06 11:18:06 -05:00
|
|
|
| ^^^^^^^^^^^^^^ help: consider: `1_234.567_8_f32`
|
2017-07-19 18:56:32 -05:00
|
|
|
|
|
|
|
error: digits grouped inconsistently by underscores
|
2020-04-04 14:47:16 -05:00
|
|
|
--> $DIR/inconsistent_digit_grouping.rs:26:64
|
2018-10-06 11:18:06 -05:00
|
|
|
|
|
2018-12-27 09:57:55 -06:00
|
|
|
LL | let bad = (1_23_456, 1_234_5678, 1234_567, 1_234.5678_f32, 1.234_5678_f32);
|
2018-10-06 11:18:06 -05:00
|
|
|
| ^^^^^^^^^^^^^^ help: consider: `1.234_567_8_f32`
|
2017-07-19 18:56:32 -05:00
|
|
|
|
2019-11-13 00:27:19 -06:00
|
|
|
error: long literal lacking separators
|
2020-04-04 14:47:16 -05:00
|
|
|
--> $DIR/inconsistent_digit_grouping.rs:29:13
|
2019-11-13 00:27:19 -06:00
|
|
|
|
|
|
|
|
LL | let _ = 0x100000;
|
|
|
|
| ^^^^^^^^ help: consider: `0x0010_0000`
|
|
|
|
|
|
2020-04-04 14:47:16 -05:00
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/inconsistent_digit_grouping.rs:3:8
|
|
|
|
|
|
|
|
|
LL | #[deny(clippy::unreadable_literal)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-11-13 00:27:19 -06:00
|
|
|
|
|
|
|
error: long literal lacking separators
|
2020-04-04 14:47:16 -05:00
|
|
|
--> $DIR/inconsistent_digit_grouping.rs:30:13
|
2019-11-13 00:27:19 -06:00
|
|
|
|
|
|
|
|
LL | let _ = 0x1000000;
|
|
|
|
| ^^^^^^^^^ help: consider: `0x0100_0000`
|
|
|
|
|
|
|
|
error: long literal lacking separators
|
2020-04-04 14:47:16 -05:00
|
|
|
--> $DIR/inconsistent_digit_grouping.rs:31:13
|
2019-11-13 00:27:19 -06:00
|
|
|
|
|
|
|
|
LL | let _ = 0x10000000;
|
|
|
|
| ^^^^^^^^^^ help: consider: `0x1000_0000`
|
|
|
|
|
|
|
|
error: long literal lacking separators
|
2020-04-04 14:47:16 -05:00
|
|
|
--> $DIR/inconsistent_digit_grouping.rs:32:13
|
2019-11-13 00:27:19 -06:00
|
|
|
|
|
|
|
|
LL | let _ = 0x100000000_u64;
|
|
|
|
| ^^^^^^^^^^^^^^^ help: consider: `0x0001_0000_0000_u64`
|
|
|
|
|
2019-11-13 23:42:04 -06:00
|
|
|
error: digits grouped inconsistently by underscores
|
2020-04-04 14:47:16 -05:00
|
|
|
--> $DIR/inconsistent_digit_grouping.rs:35:18
|
2019-11-13 23:42:04 -06:00
|
|
|
|
|
|
|
|
LL | let _: f32 = 1_23_456.;
|
|
|
|
| ^^^^^^^^^ help: consider: `123_456.`
|
|
|
|
|
|
|
|
error: aborting due to 10 previous errors
|
2018-01-16 10:06:27 -06:00
|
|
|
|