1error: integer type suffix should not be separated by an underscore 2 --> $DIR/literals.rs:12:15 3 | 4LL | let ok4 = 0xab_cd_i32; 5 | ^^^^^^^^^^^ help: remove the underscore: `0xab_cdi32` 6 | 7 = note: `-D clippy::separated-literal-suffix` implied by `-D warnings` 8 9error: integer type suffix should not be separated by an underscore 10 --> $DIR/literals.rs:13:15 11 | 12LL | let ok5 = 0xAB_CD_u32; 13 | ^^^^^^^^^^^ help: remove the underscore: `0xAB_CDu32` 14 15error: integer type suffix should not be separated by an underscore 16 --> $DIR/literals.rs:14:15 17 | 18LL | let ok5 = 0xAB_CD_isize; 19 | ^^^^^^^^^^^^^ help: remove the underscore: `0xAB_CDisize` 20 21error: inconsistent casing in hexadecimal literal 22 --> $DIR/literals.rs:15:17 23 | 24LL | let fail1 = 0xabCD; 25 | ^^^^^^ 26 | 27 = note: `-D clippy::mixed-case-hex-literals` implied by `-D warnings` 28 29error: integer type suffix should not be separated by an underscore 30 --> $DIR/literals.rs:16:17 31 | 32LL | let fail2 = 0xabCD_u32; 33 | ^^^^^^^^^^ help: remove the underscore: `0xabCDu32` 34 35error: inconsistent casing in hexadecimal literal 36 --> $DIR/literals.rs:16:17 37 | 38LL | let fail2 = 0xabCD_u32; 39 | ^^^^^^^^^^ 40 41error: integer type suffix should not be separated by an underscore 42 --> $DIR/literals.rs:17:17 43 | 44LL | let fail2 = 0xabCD_isize; 45 | ^^^^^^^^^^^^ help: remove the underscore: `0xabCDisize` 46 47error: inconsistent casing in hexadecimal literal 48 --> $DIR/literals.rs:17:17 49 | 50LL | let fail2 = 0xabCD_isize; 51 | ^^^^^^^^^^^^ 52 53error: integer type suffix should be separated by an underscore 54 --> $DIR/literals.rs:18:27 55 | 56LL | let fail_multi_zero = 000_123usize; 57 | ^^^^^^^^^^^^ help: add an underscore: `000_123_usize` 58 | 59 = note: `-D clippy::unseparated-literal-suffix` implied by `-D warnings` 60 61error: this is a decimal constant 62 --> $DIR/literals.rs:18:27 63 | 64LL | let fail_multi_zero = 000_123usize; 65 | ^^^^^^^^^^^^ 66 | 67 = note: `-D clippy::zero-prefixed-literal` implied by `-D warnings` 68help: if you mean to use a decimal constant, remove the `0` to avoid confusion 69 | 70LL | let fail_multi_zero = 123usize; 71 | ~~~~~~~~ 72help: if you mean to use an octal constant, use `0o` 73 | 74LL | let fail_multi_zero = 0o123usize; 75 | ~~~~~~~~~~ 76 77error: integer type suffix should not be separated by an underscore 78 --> $DIR/literals.rs:21:16 79 | 80LL | let ok10 = 0_i64; 81 | ^^^^^ help: remove the underscore: `0i64` 82 83error: this is a decimal constant 84 --> $DIR/literals.rs:22:17 85 | 86LL | let fail8 = 0123; 87 | ^^^^ 88 | 89help: if you mean to use a decimal constant, remove the `0` to avoid confusion 90 | 91LL | let fail8 = 123; 92 | ~~~ 93help: if you mean to use an octal constant, use `0o` 94 | 95LL | let fail8 = 0o123; 96 | ~~~~~ 97 98error: integer type suffix should not be separated by an underscore 99 --> $DIR/literals.rs:31:16 100 | 101LL | let ok17 = 0x123_4567_8901_usize; 102 | ^^^^^^^^^^^^^^^^^^^^^ help: remove the underscore: `0x123_4567_8901usize` 103 104error: digits grouped inconsistently by underscores 105 --> $DIR/literals.rs:34:18 106 | 107LL | let fail19 = 12_3456_21; 108 | ^^^^^^^^^^ help: consider: `12_345_621` 109 | 110 = note: `-D clippy::inconsistent-digit-grouping` implied by `-D warnings` 111 112error: digits grouped inconsistently by underscores 113 --> $DIR/literals.rs:35:18 114 | 115LL | let fail22 = 3__4___23; 116 | ^^^^^^^^^ help: consider: `3_423` 117 118error: digits grouped inconsistently by underscores 119 --> $DIR/literals.rs:36:18 120 | 121LL | let fail23 = 3__16___23; 122 | ^^^^^^^^^^ help: consider: `31_623` 123 124error: digits of hex or binary literal not grouped by four 125 --> $DIR/literals.rs:38:18 126 | 127LL | let fail24 = 0xAB_ABC_AB; 128 | ^^^^^^^^^^^ help: consider: `0x0ABA_BCAB` 129 | 130 = note: `-D clippy::unusual-byte-groupings` implied by `-D warnings` 131 132error: digits of hex or binary literal not grouped by four 133 --> $DIR/literals.rs:39:18 134 | 135LL | let fail25 = 0b01_100_101; 136 | ^^^^^^^^^^^^ help: consider: `0b0110_0101` 137 138error: aborting due to 18 previous errors 139 140