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