1 error: integer type suffix should not be separated by an underscore
2 --> $DIR/literals.rs:12:15
4 LL | let ok4 = 0xab_cd_i32;
5 | ^^^^^^^^^^^ help: remove the underscore: `0xab_cdi32`
7 = note: `-D clippy::separated-literal-suffix` implied by `-D warnings`
9 error: integer type suffix should not be separated by an underscore
10 --> $DIR/literals.rs:13:15
12 LL | let ok5 = 0xAB_CD_u32;
13 | ^^^^^^^^^^^ help: remove the underscore: `0xAB_CDu32`
15 error: integer type suffix should not be separated by an underscore
16 --> $DIR/literals.rs:14:15
18 LL | let ok5 = 0xAB_CD_isize;
19 | ^^^^^^^^^^^^^ help: remove the underscore: `0xAB_CDisize`
21 error: inconsistent casing in hexadecimal literal
22 --> $DIR/literals.rs:15:17
24 LL | let fail1 = 0xabCD;
27 = note: `-D clippy::mixed-case-hex-literals` implied by `-D warnings`
29 error: integer type suffix should not be separated by an underscore
30 --> $DIR/literals.rs:16:17
32 LL | let fail2 = 0xabCD_u32;
33 | ^^^^^^^^^^ help: remove the underscore: `0xabCDu32`
35 error: inconsistent casing in hexadecimal literal
36 --> $DIR/literals.rs:16:17
38 LL | let fail2 = 0xabCD_u32;
41 error: integer type suffix should not be separated by an underscore
42 --> $DIR/literals.rs:17:17
44 LL | let fail2 = 0xabCD_isize;
45 | ^^^^^^^^^^^^ help: remove the underscore: `0xabCDisize`
47 error: inconsistent casing in hexadecimal literal
48 --> $DIR/literals.rs:17:17
50 LL | let fail2 = 0xabCD_isize;
53 error: integer type suffix should be separated by an underscore
54 --> $DIR/literals.rs:18:27
56 LL | let fail_multi_zero = 000_123usize;
57 | ^^^^^^^^^^^^ help: add an underscore: `000_123_usize`
59 = note: `-D clippy::unseparated-literal-suffix` implied by `-D warnings`
61 error: this is a decimal constant
62 --> $DIR/literals.rs:18:27
64 LL | let fail_multi_zero = 000_123usize;
67 = note: `-D clippy::zero-prefixed-literal` implied by `-D warnings`
68 help: if you mean to use a decimal constant, remove the `0` to avoid confusion
70 LL | let fail_multi_zero = 123usize;
72 help: if you mean to use an octal constant, use `0o`
74 LL | let fail_multi_zero = 0o123usize;
77 error: integer type suffix should not be separated by an underscore
78 --> $DIR/literals.rs:21:16
80 LL | let ok10 = 0_i64;
81 | ^^^^^ help: remove the underscore: `0i64`
83 error: this is a decimal constant
84 --> $DIR/literals.rs:22:17
86 LL | let fail8 = 0123;
89 help: if you mean to use a decimal constant, remove the `0` to avoid confusion
93 help: if you mean to use an octal constant, use `0o`
95 LL | let fail8 = 0o123;
98 error: integer type suffix should not be separated by an underscore
99 --> $DIR/literals.rs:31:16
101 LL | let ok17 = 0x123_4567_8901_usize;
102 | ^^^^^^^^^^^^^^^^^^^^^ help: remove the underscore: `0x123_4567_8901usize`
104 error: digits grouped inconsistently by underscores
105 --> $DIR/literals.rs:34:18
107 LL | let fail19 = 12_3456_21;
108 | ^^^^^^^^^^ help: consider: `12_345_621`
110 = note: `-D clippy::inconsistent-digit-grouping` implied by `-D warnings`
112 error: digits grouped inconsistently by underscores
113 --> $DIR/literals.rs:35:18
115 LL | let fail22 = 3__4___23;
116 | ^^^^^^^^^ help: consider: `3_423`
118 error: digits grouped inconsistently by underscores
119 --> $DIR/literals.rs:36:18
121 LL | let fail23 = 3__16___23;
122 | ^^^^^^^^^^ help: consider: `31_623`
124 error: digits of hex or binary literal not grouped by four
125 --> $DIR/literals.rs:38:18
127 LL | let fail24 = 0xAB_ABC_AB;
128 | ^^^^^^^^^^^ help: consider: `0x0ABA_BCAB`
130 = note: `-D clippy::unusual-byte-groupings` implied by `-D warnings`
132 error: digits of hex or binary literal not grouped by four
133 --> $DIR/literals.rs:39:18
135 LL | let fail25 = 0b01_100_101;
136 | ^^^^^^^^^^^^ help: consider: `0b0110_0101`
138 error: this is a decimal constant
139 --> $DIR/literals.rs:46:13
144 help: if you mean to use a decimal constant, remove the `0` to avoid confusion
149 error: this is a decimal constant
150 --> $DIR/literals.rs:47:13
155 help: if you mean to use a decimal constant, remove the `0` to avoid confusion
160 error: this is a decimal constant
161 --> $DIR/literals.rs:48:13
166 help: if you mean to use a decimal constant, remove the `0` to avoid confusion
171 error: aborting due to 21 previous errors