]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: inconsistent casing in hexadecimal literal |
2 | --> $DIR/literals.rs:14:17 | |
3 | | | |
4 | LL | 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:15:17 | |
11 | | | |
12 | LL | let fail2 = 0xabCD_u32; | |
13 | | ^^^^^^^^^^ | |
14 | ||
15 | error: inconsistent casing in hexadecimal literal | |
16 | --> $DIR/literals.rs:16:17 | |
17 | | | |
18 | LL | let fail2 = 0xabCD_isize; | |
19 | | ^^^^^^^^^^^^ | |
20 | ||
21 | error: this is a decimal constant | |
22 | --> $DIR/literals.rs:17:27 | |
23 | | | |
24 | LL | let fail_multi_zero = 000_123usize; | |
25 | | ^^^^^^^^^^^^ | |
26 | | | |
27 | = note: `-D clippy::zero-prefixed-literal` implied by `-D warnings` | |
28 | help: if you mean to use a decimal constant, remove the `0` to avoid confusion | |
29 | | | |
30 | LL | let fail_multi_zero = 123usize; | |
31 | | ^^^^^^^^ | |
32 | help: if you mean to use an octal constant, use `0o` | |
33 | | | |
34 | LL | let fail_multi_zero = 0o123usize; | |
35 | | ^^^^^^^^^^ | |
36 | ||
37 | error: this is a decimal constant | |
38 | --> $DIR/literals.rs:21:17 | |
39 | | | |
40 | LL | let fail8 = 0123; | |
41 | | ^^^^ | |
42 | | | |
43 | help: if you mean to use a decimal constant, remove the `0` to avoid confusion | |
44 | | | |
45 | LL | let fail8 = 123; | |
46 | | ^^^ | |
47 | help: if you mean to use an octal constant, use `0o` | |
48 | | | |
49 | LL | let fail8 = 0o123; | |
50 | | ^^^^^ | |
51 | ||
52 | error: digits grouped inconsistently by underscores | |
53 | --> $DIR/literals.rs:33:18 | |
54 | | | |
55 | LL | let fail19 = 12_3456_21; | |
56 | | ^^^^^^^^^^ help: consider: `12_345_621` | |
57 | | | |
58 | = note: `-D clippy::inconsistent-digit-grouping` implied by `-D warnings` | |
59 | ||
60 | error: digits grouped inconsistently by underscores | |
61 | --> $DIR/literals.rs:34:18 | |
62 | | | |
63 | LL | let fail22 = 3__4___23; | |
64 | | ^^^^^^^^^ help: consider: `3_423` | |
65 | ||
66 | error: digits grouped inconsistently by underscores | |
67 | --> $DIR/literals.rs:35:18 | |
68 | | | |
69 | LL | let fail23 = 3__16___23; | |
70 | | ^^^^^^^^^^ help: consider: `31_623` | |
71 | ||
72 | error: digits of hex or binary literal not grouped by four | |
73 | --> $DIR/literals.rs:37:18 | |
74 | | | |
75 | LL | let fail24 = 0xAB_ABC_AB; | |
76 | | ^^^^^^^^^^^ help: consider: `0x0ABA_BCAB` | |
77 | | | |
78 | = note: `-D clippy::unusual-byte-groupings` implied by `-D warnings` | |
79 | ||
80 | error: digits of hex or binary literal not grouped by four | |
81 | --> $DIR/literals.rs:38:18 | |
82 | | | |
83 | LL | let fail25 = 0b01_100_101; | |
84 | | ^^^^^^^^^^^^ help: consider: `0b0110_0101` | |
85 | ||
86 | error: aborting due to 10 previous errors | |
87 |