@@ -25,6 +25,7 @@ error: inconsistent casing in hexadecimal literal
25
25
LL | let fail1 = 0xabCD;
26
26
| ^^^^^^
27
27
|
28
+ = help: consider using `0xabcd` or `0xABCD`
28
29
= note: `-D clippy::mixed-case-hex-literals` implied by `-D warnings`
29
30
= help: to override `-D warnings` add `#[allow(clippy::mixed_case_hex_literals)]`
30
31
@@ -39,6 +40,8 @@ error: inconsistent casing in hexadecimal literal
39
40
|
40
41
LL | let fail2 = 0xabCD_u32;
41
42
| ^^^^^^^^^^
43
+ |
44
+ = help: consider using `0xabcd_u32` or `0xABCD_u32`
42
45
43
46
error: integer type suffix should not be separated by an underscore
44
47
--> tests/ui/literals.rs:29:17
@@ -51,9 +54,25 @@ error: inconsistent casing in hexadecimal literal
51
54
|
52
55
LL | let fail2 = 0xabCD_isize;
53
56
| ^^^^^^^^^^^^
57
+ |
58
+ = help: consider using `0xabcd_isize` or `0xABCD_isize`
59
+
60
+ error: integer type suffix should not be separated by an underscore
61
+ --> tests/ui/literals.rs:33:17
62
+ |
63
+ LL | let fail2 = 0xab_CD_isize;
64
+ | ^^^^^^^^^^^^^ help: remove the underscore: `0xab_CDisize`
65
+
66
+ error: inconsistent casing in hexadecimal literal
67
+ --> tests/ui/literals.rs:33:17
68
+ |
69
+ LL | let fail2 = 0xab_CD_isize;
70
+ | ^^^^^^^^^^^^^
71
+ |
72
+ = help: consider using `0xab_cd_isize` or `0xAB_CD_isize`
54
73
55
74
error: integer type suffix should be separated by an underscore
56
- --> tests/ui/literals.rs:33 :27
75
+ --> tests/ui/literals.rs:37 :27
57
76
|
58
77
LL | let fail_multi_zero = 000_123usize;
59
78
| ^^^^^^^^^^^^ help: add an underscore: `000_123_usize`
@@ -62,7 +81,7 @@ LL | let fail_multi_zero = 000_123usize;
62
81
= help: to override `-D warnings` add `#[allow(clippy::unseparated_literal_suffix)]`
63
82
64
83
error: this is a decimal constant
65
- --> tests/ui/literals.rs:33 :27
84
+ --> tests/ui/literals.rs:37 :27
66
85
|
67
86
LL | let fail_multi_zero = 000_123usize;
68
87
| ^^^^^^^^^^^^
@@ -81,13 +100,13 @@ LL + let fail_multi_zero = 0o123usize;
81
100
|
82
101
83
102
error: integer type suffix should not be separated by an underscore
84
- --> tests/ui/literals.rs:38 :16
103
+ --> tests/ui/literals.rs:42 :16
85
104
|
86
105
LL | let ok10 = 0_i64;
87
106
| ^^^^^ help: remove the underscore: `0i64`
88
107
89
108
error: this is a decimal constant
90
- --> tests/ui/literals.rs:41 :17
109
+ --> tests/ui/literals.rs:45 :17
91
110
|
92
111
LL | let fail8 = 0123;
93
112
| ^^^^
@@ -103,13 +122,13 @@ LL | let fail8 = 0o123;
103
122
| +
104
123
105
124
error: integer type suffix should not be separated by an underscore
106
- --> tests/ui/literals.rs:51 :16
125
+ --> tests/ui/literals.rs:55 :16
107
126
|
108
127
LL | let ok17 = 0x123_4567_8901_usize;
109
128
| ^^^^^^^^^^^^^^^^^^^^^ help: remove the underscore: `0x123_4567_8901usize`
110
129
111
130
error: digits grouped inconsistently by underscores
112
- --> tests/ui/literals.rs:56 :18
131
+ --> tests/ui/literals.rs:60 :18
113
132
|
114
133
LL | let fail19 = 12_3456_21;
115
134
| ^^^^^^^^^^ help: consider: `12_345_621`
@@ -118,19 +137,19 @@ LL | let fail19 = 12_3456_21;
118
137
= help: to override `-D warnings` add `#[allow(clippy::inconsistent_digit_grouping)]`
119
138
120
139
error: digits grouped inconsistently by underscores
121
- --> tests/ui/literals.rs:59 :18
140
+ --> tests/ui/literals.rs:63 :18
122
141
|
123
142
LL | let fail22 = 3__4___23;
124
143
| ^^^^^^^^^ help: consider: `3_423`
125
144
126
145
error: digits grouped inconsistently by underscores
127
- --> tests/ui/literals.rs:62 :18
146
+ --> tests/ui/literals.rs:66 :18
128
147
|
129
148
LL | let fail23 = 3__16___23;
130
149
| ^^^^^^^^^^ help: consider: `31_623`
131
150
132
151
error: digits of hex, binary or octal literal not in groups of equal size
133
- --> tests/ui/literals.rs:65 :18
152
+ --> tests/ui/literals.rs:69 :18
134
153
|
135
154
LL | let fail24 = 0xAB_ABC_AB;
136
155
| ^^^^^^^^^^^ help: consider: `0x0ABA_BCAB`
@@ -139,7 +158,7 @@ LL | let fail24 = 0xAB_ABC_AB;
139
158
= help: to override `-D warnings` add `#[allow(clippy::unusual_byte_groupings)]`
140
159
141
160
error: this is a decimal constant
142
- --> tests/ui/literals.rs:75 :13
161
+ --> tests/ui/literals.rs:79 :13
143
162
|
144
163
LL | let _ = 08;
145
164
| ^^
@@ -151,7 +170,7 @@ LL + let _ = 8;
151
170
|
152
171
153
172
error: this is a decimal constant
154
- --> tests/ui/literals.rs:78 :13
173
+ --> tests/ui/literals.rs:82 :13
155
174
|
156
175
LL | let _ = 09;
157
176
| ^^
@@ -163,7 +182,7 @@ LL + let _ = 9;
163
182
|
164
183
165
184
error: this is a decimal constant
166
- --> tests/ui/literals.rs:81 :13
185
+ --> tests/ui/literals.rs:85 :13
167
186
|
168
187
LL | let _ = 089;
169
188
| ^^^
@@ -174,5 +193,5 @@ LL - let _ = 089;
174
193
LL + let _ = 89;
175
194
|
176
195
177
- error: aborting due to 20 previous errors
196
+ error: aborting due to 22 previous errors
178
197
0 commit comments