]> git.lizzy.rs Git - rust.git/blob - src/tools/clippy/tests/ui/literals.stderr
Auto merge of #101969 - reez12g:issue-101306, r=reez12g
[rust.git] / src / tools / clippy / tests / ui / literals.stderr
1 error: integer type suffix should not be separated by an underscore
2   --> $DIR/literals.rs:12:15
3    |
4 LL |     let ok4 = 0xab_cd_i32;
5    |               ^^^^^^^^^^^ help: remove the underscore: `0xab_cdi32`
6    |
7    = note: `-D clippy::separated-literal-suffix` implied by `-D warnings`
8
9 error: integer type suffix should not be separated by an underscore
10   --> $DIR/literals.rs:13:15
11    |
12 LL |     let ok5 = 0xAB_CD_u32;
13    |               ^^^^^^^^^^^ help: remove the underscore: `0xAB_CDu32`
14
15 error: integer type suffix should not be separated by an underscore
16   --> $DIR/literals.rs:14:15
17    |
18 LL |     let ok5 = 0xAB_CD_isize;
19    |               ^^^^^^^^^^^^^ help: remove the underscore: `0xAB_CDisize`
20
21 error: inconsistent casing in hexadecimal literal
22   --> $DIR/literals.rs:15:17
23    |
24 LL |     let fail1 = 0xabCD;
25    |                 ^^^^^^
26    |
27    = note: `-D clippy::mixed-case-hex-literals` implied by `-D warnings`
28
29 error: integer type suffix should not be separated by an underscore
30   --> $DIR/literals.rs:16:17
31    |
32 LL |     let fail2 = 0xabCD_u32;
33    |                 ^^^^^^^^^^ help: remove the underscore: `0xabCDu32`
34
35 error: inconsistent casing in hexadecimal literal
36   --> $DIR/literals.rs:16:17
37    |
38 LL |     let fail2 = 0xabCD_u32;
39    |                 ^^^^^^^^^^
40
41 error: integer type suffix should not be separated by an underscore
42   --> $DIR/literals.rs:17:17
43    |
44 LL |     let fail2 = 0xabCD_isize;
45    |                 ^^^^^^^^^^^^ help: remove the underscore: `0xabCDisize`
46
47 error: inconsistent casing in hexadecimal literal
48   --> $DIR/literals.rs:17:17
49    |
50 LL |     let fail2 = 0xabCD_isize;
51    |                 ^^^^^^^^^^^^
52
53 error: integer type suffix should be separated by an underscore
54   --> $DIR/literals.rs:18:27
55    |
56 LL |     let fail_multi_zero = 000_123usize;
57    |                           ^^^^^^^^^^^^ help: add an underscore: `000_123_usize`
58    |
59    = note: `-D clippy::unseparated-literal-suffix` implied by `-D warnings`
60
61 error: this is a decimal constant
62   --> $DIR/literals.rs:18:27
63    |
64 LL |     let fail_multi_zero = 000_123usize;
65    |                           ^^^^^^^^^^^^
66    |
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
69    |
70 LL |     let fail_multi_zero = 123usize;
71    |                           ~~~~~~~~
72 help: if you mean to use an octal constant, use `0o`
73    |
74 LL |     let fail_multi_zero = 0o123usize;
75    |                           ~~~~~~~~~~
76
77 error: integer type suffix should not be separated by an underscore
78   --> $DIR/literals.rs:21:16
79    |
80 LL |     let ok10 = 0_i64;
81    |                ^^^^^ help: remove the underscore: `0i64`
82
83 error: this is a decimal constant
84   --> $DIR/literals.rs:22:17
85    |
86 LL |     let fail8 = 0123;
87    |                 ^^^^
88    |
89 help: if you mean to use a decimal constant, remove the `0` to avoid confusion
90    |
91 LL |     let fail8 = 123;
92    |                 ~~~
93 help: if you mean to use an octal constant, use `0o`
94    |
95 LL |     let fail8 = 0o123;
96    |                 ~~~~~
97
98 error: integer type suffix should not be separated by an underscore
99   --> $DIR/literals.rs:31:16
100    |
101 LL |     let ok17 = 0x123_4567_8901_usize;
102    |                ^^^^^^^^^^^^^^^^^^^^^ help: remove the underscore: `0x123_4567_8901usize`
103
104 error: digits grouped inconsistently by underscores
105   --> $DIR/literals.rs:34:18
106    |
107 LL |     let fail19 = 12_3456_21;
108    |                  ^^^^^^^^^^ help: consider: `12_345_621`
109    |
110    = note: `-D clippy::inconsistent-digit-grouping` implied by `-D warnings`
111
112 error: digits grouped inconsistently by underscores
113   --> $DIR/literals.rs:35:18
114    |
115 LL |     let fail22 = 3__4___23;
116    |                  ^^^^^^^^^ help: consider: `3_423`
117
118 error: digits grouped inconsistently by underscores
119   --> $DIR/literals.rs:36:18
120    |
121 LL |     let fail23 = 3__16___23;
122    |                  ^^^^^^^^^^ help: consider: `31_623`
123
124 error: digits of hex or binary literal not grouped by four
125   --> $DIR/literals.rs:38:18
126    |
127 LL |     let fail24 = 0xAB_ABC_AB;
128    |                  ^^^^^^^^^^^ help: consider: `0x0ABA_BCAB`
129    |
130    = note: `-D clippy::unusual-byte-groupings` implied by `-D warnings`
131
132 error: digits of hex or binary literal not grouped by four
133   --> $DIR/literals.rs:39:18
134    |
135 LL |     let fail25 = 0b01_100_101;
136    |                  ^^^^^^^^^^^^ help: consider: `0b0110_0101`
137
138 error: aborting due to 18 previous errors
139