11error: integer type suffix should not be separated by an underscore
2- --> tests/ui/literals.rs:13 :15
2+ --> tests/ui/literals.rs:15 :15
33 |
44LL | let ok4 = 0xab_cd_i32;
55 | ^^^^^^^^^^^ help: remove the underscore: `0xab_cdi32`
@@ -8,19 +8,19 @@ LL | let ok4 = 0xab_cd_i32;
88 = help: to override `-D warnings` add `#[allow(clippy::separated_literal_suffix)]`
99
1010error: integer type suffix should not be separated by an underscore
11- --> tests/ui/literals.rs:16 :15
11+ --> tests/ui/literals.rs:18 :15
1212 |
1313LL | let ok5 = 0xAB_CD_u32;
1414 | ^^^^^^^^^^^ help: remove the underscore: `0xAB_CDu32`
1515
1616error: integer type suffix should not be separated by an underscore
17- --> tests/ui/literals.rs:19 :15
17+ --> tests/ui/literals.rs:21 :15
1818 |
1919LL | let ok5 = 0xAB_CD_isize;
2020 | ^^^^^^^^^^^^^ help: remove the underscore: `0xAB_CDisize`
2121
2222error: inconsistent casing in hexadecimal literal
23- --> tests/ui/literals.rs:22 :17
23+ --> tests/ui/literals.rs:24 :17
2424 |
2525LL | let fail1 = 0xabCD;
2626 | ^^^^^^
@@ -30,49 +30,49 @@ LL | let fail1 = 0xabCD;
3030 = help: to override `-D warnings` add `#[allow(clippy::mixed_case_hex_literals)]`
3131
3232error: integer type suffix should not be separated by an underscore
33- --> tests/ui/literals.rs:25 :17
33+ --> tests/ui/literals.rs:27 :17
3434 |
3535LL | let fail2 = 0xabCD_u32;
3636 | ^^^^^^^^^^ help: remove the underscore: `0xabCDu32`
3737
3838error: inconsistent casing in hexadecimal literal
39- --> tests/ui/literals.rs:25 :17
39+ --> tests/ui/literals.rs:27 :17
4040 |
4141LL | let fail2 = 0xabCD_u32;
4242 | ^^^^^^^^^^
4343 |
4444 = help: consider using `0xabcd_u32` or `0xABCD_u32`
4545
4646error: integer type suffix should not be separated by an underscore
47- --> tests/ui/literals.rs:29 :17
47+ --> tests/ui/literals.rs:31 :17
4848 |
4949LL | let fail2 = 0xabCD_isize;
5050 | ^^^^^^^^^^^^ help: remove the underscore: `0xabCDisize`
5151
5252error: inconsistent casing in hexadecimal literal
53- --> tests/ui/literals.rs:29 :17
53+ --> tests/ui/literals.rs:31 :17
5454 |
5555LL | let fail2 = 0xabCD_isize;
5656 | ^^^^^^^^^^^^
5757 |
5858 = help: consider using `0xabcd_isize` or `0xABCD_isize`
5959
6060error: integer type suffix should not be separated by an underscore
61- --> tests/ui/literals.rs:33 :17
61+ --> tests/ui/literals.rs:35 :17
6262 |
6363LL | let fail2 = 0xab_CD_isize;
6464 | ^^^^^^^^^^^^^ help: remove the underscore: `0xab_CDisize`
6565
6666error: inconsistent casing in hexadecimal literal
67- --> tests/ui/literals.rs:33 :17
67+ --> tests/ui/literals.rs:35 :17
6868 |
6969LL | let fail2 = 0xab_CD_isize;
7070 | ^^^^^^^^^^^^^
7171 |
7272 = help: consider using `0xab_cd_isize` or `0xAB_CD_isize`
7373
7474error: integer type suffix should be separated by an underscore
75- --> tests/ui/literals.rs:37 :27
75+ --> tests/ui/literals.rs:39 :27
7676 |
7777LL | let fail_multi_zero = 000_123usize;
7878 | ^^^^^^^^^^^^ help: add an underscore: `000_123_usize`
@@ -81,7 +81,7 @@ LL | let fail_multi_zero = 000_123usize;
8181 = help: to override `-D warnings` add `#[allow(clippy::unseparated_literal_suffix)]`
8282
8383error: this is a decimal constant
84- --> tests/ui/literals.rs:37 :27
84+ --> tests/ui/literals.rs:39 :27
8585 |
8686LL | let fail_multi_zero = 000_123usize;
8787 | ^^^^^^^^^^^^
@@ -100,13 +100,13 @@ LL + let fail_multi_zero = 0o123usize;
100100 |
101101
102102error: integer type suffix should not be separated by an underscore
103- --> tests/ui/literals.rs:42 :16
103+ --> tests/ui/literals.rs:44 :16
104104 |
105105LL | let ok10 = 0_i64;
106106 | ^^^^^ help: remove the underscore: `0i64`
107107
108108error: this is a decimal constant
109- --> tests/ui/literals.rs:45 :17
109+ --> tests/ui/literals.rs:47 :17
110110 |
111111LL | let fail8 = 0123;
112112 | ^^^^
@@ -122,13 +122,13 @@ LL | let fail8 = 0o123;
122122 | +
123123
124124error: integer type suffix should not be separated by an underscore
125- --> tests/ui/literals.rs:55 :16
125+ --> tests/ui/literals.rs:57 :16
126126 |
127127LL | let ok17 = 0x123_4567_8901_usize;
128128 | ^^^^^^^^^^^^^^^^^^^^^ help: remove the underscore: `0x123_4567_8901usize`
129129
130130error: digits grouped inconsistently by underscores
131- --> tests/ui/literals.rs:60 :18
131+ --> tests/ui/literals.rs:62 :18
132132 |
133133LL | let fail19 = 12_3456_21;
134134 | ^^^^^^^^^^ help: consider: `12_345_621`
@@ -137,19 +137,19 @@ LL | let fail19 = 12_3456_21;
137137 = help: to override `-D warnings` add `#[allow(clippy::inconsistent_digit_grouping)]`
138138
139139error: digits grouped inconsistently by underscores
140- --> tests/ui/literals.rs:63 :18
140+ --> tests/ui/literals.rs:65 :18
141141 |
142142LL | let fail22 = 3__4___23;
143143 | ^^^^^^^^^ help: consider: `3_423`
144144
145145error: digits grouped inconsistently by underscores
146- --> tests/ui/literals.rs:66 :18
146+ --> tests/ui/literals.rs:68 :18
147147 |
148148LL | let fail23 = 3__16___23;
149149 | ^^^^^^^^^^ help: consider: `31_623`
150150
151151error: digits of hex, binary or octal literal not in groups of equal size
152- --> tests/ui/literals.rs:69 :18
152+ --> tests/ui/literals.rs:71 :18
153153 |
154154LL | let fail24 = 0xAB_ABC_AB;
155155 | ^^^^^^^^^^^ help: consider: `0x0ABA_BCAB`
@@ -158,7 +158,7 @@ LL | let fail24 = 0xAB_ABC_AB;
158158 = help: to override `-D warnings` add `#[allow(clippy::unusual_byte_groupings)]`
159159
160160error: this is a decimal constant
161- --> tests/ui/literals.rs:79 :13
161+ --> tests/ui/literals.rs:81 :13
162162 |
163163LL | let _ = 08;
164164 | ^^
@@ -170,7 +170,7 @@ LL + let _ = 8;
170170 |
171171
172172error: this is a decimal constant
173- --> tests/ui/literals.rs:82 :13
173+ --> tests/ui/literals.rs:84 :13
174174 |
175175LL | let _ = 09;
176176 | ^^
@@ -182,7 +182,7 @@ LL + let _ = 9;
182182 |
183183
184184error: this is a decimal constant
185- --> tests/ui/literals.rs:85 :13
185+ --> tests/ui/literals.rs:87 :13
186186 |
187187LL | let _ = 089;
188188 | ^^^
0 commit comments