1 error: inconsistent casing in hexadecimal literal
2 --> $DIR/literals.rs:22:17
4 LL | let fail1 = 0xabCD;
7 = note: `-D clippy::mixed-case-hex-literals` implied by `-D warnings`
9 error: inconsistent casing in hexadecimal literal
10 --> $DIR/literals.rs:23:17
12 LL | let fail2 = 0xabCD_u32;
15 error: inconsistent casing in hexadecimal literal
16 --> $DIR/literals.rs:24:17
18 LL | let fail2 = 0xabCD_isize;
21 error: integer type suffix should be separated by an underscore
22 --> $DIR/literals.rs:25:27
24 LL | let fail_multi_zero = 000_123usize;
27 = note: `-D clippy::unseparated-literal-suffix` implied by `-D warnings`
29 error: this is a decimal constant
30 --> $DIR/literals.rs:25:27
32 LL | let fail_multi_zero = 000_123usize;
35 = note: `-D clippy::zero-prefixed-literal` implied by `-D warnings`
36 help: if you mean to use a decimal constant, remove the `0` to remove confusion
38 LL | let fail_multi_zero = 123usize;
40 help: if you mean to use an octal constant, use `0o`
42 LL | let fail_multi_zero = 0o123usize;
45 error: integer type suffix should be separated by an underscore
46 --> $DIR/literals.rs:30:17
48 LL | let fail3 = 1234i32;
51 error: integer type suffix should be separated by an underscore
52 --> $DIR/literals.rs:31:17
54 LL | let fail4 = 1234u32;
57 error: integer type suffix should be separated by an underscore
58 --> $DIR/literals.rs:32:17
60 LL | let fail5 = 1234isize;
63 error: integer type suffix should be separated by an underscore
64 --> $DIR/literals.rs:33:17
66 LL | let fail6 = 1234usize;
69 error: float type suffix should be separated by an underscore
70 --> $DIR/literals.rs:34:17
72 LL | let fail7 = 1.5f32;
75 error: this is a decimal constant
76 --> $DIR/literals.rs:38:17
78 LL | let fail8 = 0123;
80 help: if you mean to use a decimal constant, remove the `0` to remove confusion
84 help: if you mean to use an octal constant, use `0o`
86 LL | let fail8 = 0o123;
89 error: long literal lacking separators
90 --> $DIR/literals.rs:49:17
92 LL | let fail9 = 0xabcdef;
93 | ^^^^^^^^ help: consider: `0x00ab_cdef`
95 = note: `-D clippy::unreadable-literal` implied by `-D warnings`
97 error: long literal lacking separators
98 --> $DIR/literals.rs:50:18
100 LL | let fail10 = 0xBAFEBAFE;
101 | ^^^^^^^^^^ help: consider: `0xBAFE_BAFE`
103 error: long literal lacking separators
104 --> $DIR/literals.rs:51:18
106 LL | let fail11 = 0xabcdeff;
107 | ^^^^^^^^^ help: consider: `0x0abc_deff`
109 error: long literal lacking separators
110 --> $DIR/literals.rs:52:18
112 LL | let fail12 = 0xabcabcabcabcabcabc;
113 | ^^^^^^^^^^^^^^^^^^^^ help: consider: `0x00ab_cabc_abca_bcab_cabc`
115 error: digit groups should be smaller
116 --> $DIR/literals.rs:53:18
118 LL | let fail13 = 0x1_23456_78901_usize;
119 | ^^^^^^^^^^^^^^^^^^^^^ help: consider: `0x0123_4567_8901_usize`
121 = note: `-D clippy::large-digit-groups` implied by `-D warnings`
123 error: mistyped literal suffix
124 --> $DIR/literals.rs:55:18
126 LL | let fail14 = 2_32;
127 | ^^^^ help: did you mean to write: `2_i32`
129 = note: #[deny(clippy::mistyped_literal_suffixes)] on by default
131 error: mistyped literal suffix
132 --> $DIR/literals.rs:56:18
134 LL | let fail15 = 4_64;
135 | ^^^^ help: did you mean to write: `4_i64`
137 error: mistyped literal suffix
138 --> $DIR/literals.rs:57:18
140 LL | let fail16 = 7_8;
141 | ^^^ help: did you mean to write: `7_i8`
143 error: mistyped literal suffix
144 --> $DIR/literals.rs:58:18
146 LL | let fail17 = 23_16;
147 | ^^^^^ help: did you mean to write: `23_i16`
149 error: digits grouped inconsistently by underscores
150 --> $DIR/literals.rs:60:18
152 LL | let fail19 = 12_3456_21;
153 | ^^^^^^^^^^ help: consider: `12_345_621`
155 = note: `-D clippy::inconsistent-digit-grouping` implied by `-D warnings`
157 error: mistyped literal suffix
158 --> $DIR/literals.rs:61:18
160 LL | let fail20 = 2__8;
161 | ^^^^ help: did you mean to write: `2_i8`
163 error: mistyped literal suffix
164 --> $DIR/literals.rs:62:18
166 LL | let fail21 = 4___16;
167 | ^^^^^^ help: did you mean to write: `4_i16`
169 error: digits grouped inconsistently by underscores
170 --> $DIR/literals.rs:63:18
172 LL | let fail22 = 3__4___23;
173 | ^^^^^^^^^ help: consider: `3_423`
175 error: digits grouped inconsistently by underscores
176 --> $DIR/literals.rs:64:18
178 LL | let fail23 = 3__16___23;
179 | ^^^^^^^^^^ help: consider: `31_623`
181 error: mistyped literal suffix
182 --> $DIR/literals.rs:66:18
184 LL | let fail24 = 12.34_64;
185 | ^^^^^^^^ help: did you mean to write: `12.34_f64`
187 error: mistyped literal suffix
188 --> $DIR/literals.rs:67:18
190 LL | let fail25 = 1E2_32;
191 | ^^^^^^ help: did you mean to write: `1E2_f32`
193 error: mistyped literal suffix
194 --> $DIR/literals.rs:68:18
196 LL | let fail26 = 43E7_64;
197 | ^^^^^^^ help: did you mean to write: `43E7_f64`
199 error: mistyped literal suffix
200 --> $DIR/literals.rs:69:18
202 LL | let fail27 = 243E17_32;
203 | ^^^^^^^^^ help: did you mean to write: `243E17_f32`
205 error: mistyped literal suffix
206 --> $DIR/literals.rs:70:18
208 LL | let fail28 = 241251235E723_64;
209 | ^^^^^^^^^^^^^^^^ help: did you mean to write: `241_251_235E723_f64`
211 error: mistyped literal suffix
212 --> $DIR/literals.rs:71:18
214 LL | let fail29 = 42279.911_32;
215 | ^^^^^^^^^^^^ help: did you mean to write: `42_279.911_f32`
217 error: aborting due to 31 previous errors