]> git.lizzy.rs Git - rust.git/blob - tests/ui/literals.stderr
Merge pull request #3269 from rust-lang-nursery/relicense
[rust.git] / tests / ui / literals.stderr
1 error: inconsistent casing in hexadecimal literal
2   --> $DIR/literals.rs:24:17
3    |
4 24 |     let fail1 = 0xabCD;
5    |                 ^^^^^^
6    |
7    = note: `-D clippy::mixed-case-hex-literals` implied by `-D warnings`
8
9 error: inconsistent casing in hexadecimal literal
10   --> $DIR/literals.rs:25:17
11    |
12 25 |     let fail2 = 0xabCD_u32;
13    |                 ^^^^^^^^^^
14
15 error: inconsistent casing in hexadecimal literal
16   --> $DIR/literals.rs:26:17
17    |
18 26 |     let fail2 = 0xabCD_isize;
19    |                 ^^^^^^^^^^^^
20
21 error: integer type suffix should be separated by an underscore
22   --> $DIR/literals.rs:27:27
23    |
24 27 |     let fail_multi_zero = 000_123usize;
25    |                           ^^^^^^^^^^^^
26    |
27    = note: `-D clippy::unseparated-literal-suffix` implied by `-D warnings`
28
29 error: this is a decimal constant
30   --> $DIR/literals.rs:27:27
31    |
32 27 |     let fail_multi_zero = 000_123usize;
33    |                           ^^^^^^^^^^^^
34    |
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
37    |
38 27 |     let fail_multi_zero = 123usize;
39    |                           ^^^^^^^^
40 help: if you mean to use an octal constant, use `0o`
41    |
42 27 |     let fail_multi_zero = 0o123usize;
43    |                           ^^^^^^^^^^
44
45 error: integer type suffix should be separated by an underscore
46   --> $DIR/literals.rs:32:17
47    |
48 32 |     let fail3 = 1234i32;
49    |                 ^^^^^^^
50
51 error: integer type suffix should be separated by an underscore
52   --> $DIR/literals.rs:33:17
53    |
54 33 |     let fail4 = 1234u32;
55    |                 ^^^^^^^
56
57 error: integer type suffix should be separated by an underscore
58   --> $DIR/literals.rs:34:17
59    |
60 34 |     let fail5 = 1234isize;
61    |                 ^^^^^^^^^
62
63 error: integer type suffix should be separated by an underscore
64   --> $DIR/literals.rs:35:17
65    |
66 35 |     let fail6 = 1234usize;
67    |                 ^^^^^^^^^
68
69 error: float type suffix should be separated by an underscore
70   --> $DIR/literals.rs:36:17
71    |
72 36 |     let fail7 = 1.5f32;
73    |                 ^^^^^^
74
75 error: this is a decimal constant
76   --> $DIR/literals.rs:40:17
77    |
78 40 |     let fail8 = 0123;
79    |                 ^^^^
80 help: if you mean to use a decimal constant, remove the `0` to remove confusion
81    |
82 40 |     let fail8 = 123;
83    |                 ^^^
84 help: if you mean to use an octal constant, use `0o`
85    |
86 40 |     let fail8 = 0o123;
87    |                 ^^^^^
88
89 error: long literal lacking separators
90   --> $DIR/literals.rs:51:17
91    |
92 51 |     let fail9 = 0xabcdef;
93    |                 ^^^^^^^^ help: consider: `0x00ab_cdef`
94    |
95    = note: `-D clippy::unreadable-literal` implied by `-D warnings`
96
97 error: long literal lacking separators
98   --> $DIR/literals.rs:52:18
99    |
100 52 |     let fail10 = 0xBAFEBAFE;
101    |                  ^^^^^^^^^^ help: consider: `0xBAFE_BAFE`
102
103 error: long literal lacking separators
104   --> $DIR/literals.rs:53:18
105    |
106 53 |     let fail11 = 0xabcdeff;
107    |                  ^^^^^^^^^ help: consider: `0x0abc_deff`
108
109 error: long literal lacking separators
110   --> $DIR/literals.rs:54:18
111    |
112 54 |     let fail12 = 0xabcabcabcabcabcabc;
113    |                  ^^^^^^^^^^^^^^^^^^^^ help: consider: `0x00ab_cabc_abca_bcab_cabc`
114
115 error: digit groups should be smaller
116   --> $DIR/literals.rs:55:18
117    |
118 55 |     let fail13 = 0x1_23456_78901_usize;
119    |                  ^^^^^^^^^^^^^^^^^^^^^ help: consider: `0x0123_4567_8901_usize`
120    |
121    = note: `-D clippy::large-digit-groups` implied by `-D warnings`
122
123 error: mistyped literal suffix
124   --> $DIR/literals.rs:57:18
125    |
126 57 |     let fail14 = 2_32;
127    |                  ^^^^ help: did you mean to write: `2_i32`
128    |
129    = note: #[deny(clippy::mistyped_literal_suffixes)] on by default
130
131 error: mistyped literal suffix
132   --> $DIR/literals.rs:58:18
133    |
134 58 |     let fail15 = 4_64;
135    |                  ^^^^ help: did you mean to write: `4_i64`
136
137 error: mistyped literal suffix
138   --> $DIR/literals.rs:59:18
139    |
140 59 |     let fail16 = 7_8;
141    |                  ^^^ help: did you mean to write: `7_i8`
142
143 error: mistyped literal suffix
144   --> $DIR/literals.rs:60:18
145    |
146 60 |     let fail17 = 23_16;
147    |                  ^^^^^ help: did you mean to write: `23_i16`
148
149 error: digits grouped inconsistently by underscores
150   --> $DIR/literals.rs:62:18
151    |
152 62 |     let fail19 = 12_3456_21;
153    |                  ^^^^^^^^^^ help: consider: `12_345_621`
154    |
155    = note: `-D clippy::inconsistent-digit-grouping` implied by `-D warnings`
156
157 error: mistyped literal suffix
158   --> $DIR/literals.rs:63:18
159    |
160 63 |     let fail20 = 2__8;
161    |                  ^^^^ help: did you mean to write: `2_i8`
162
163 error: mistyped literal suffix
164   --> $DIR/literals.rs:64:18
165    |
166 64 |     let fail21 = 4___16;
167    |                  ^^^^^^ help: did you mean to write: `4_i16`
168
169 error: digits grouped inconsistently by underscores
170   --> $DIR/literals.rs:65:18
171    |
172 65 |     let fail22 = 3__4___23;
173    |                  ^^^^^^^^^ help: consider: `3_423`
174
175 error: digits grouped inconsistently by underscores
176   --> $DIR/literals.rs:66:18
177    |
178 66 |     let fail23 = 3__16___23;
179    |                  ^^^^^^^^^^ help: consider: `31_623`
180
181 error: aborting due to 25 previous errors
182