]> git.lizzy.rs Git - rust.git/blob - tests/ui/literals.stderr
Cleaner code for unsep literals
[rust.git] / tests / ui / literals.stderr
1 error: inconsistent casing in hexadecimal literal
2   --> $DIR/literals.rs:13: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:14:17
11    |
12 LL |     let fail2 = 0xabCD_u32;
13    |                 ^^^^^^^^^^
14
15 error: inconsistent casing in hexadecimal literal
16   --> $DIR/literals.rs:15:17
17    |
18 LL |     let fail2 = 0xabCD_isize;
19    |                 ^^^^^^^^^^^^
20
21 error: this is a decimal constant
22   --> $DIR/literals.rs:16: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:20:17
39    |
40 LL |     let fail8 = 0123;
41    |                 ^^^^
42 help: if you mean to use a decimal constant, remove the `0` to avoid confusion
43    |
44 LL |     let fail8 = 123;
45    |                 ^^^
46 help: if you mean to use an octal constant, use `0o`
47    |
48 LL |     let fail8 = 0o123;
49    |                 ^^^^^
50
51 error: digit groups should be smaller
52   --> $DIR/literals.rs:31:18
53    |
54 LL |     let fail13 = 0x1_23456_78901_usize;
55    |                  ^^^^^^^^^^^^^^^^^^^^^ help: consider: `0x0123_4567_8901_usize`
56    |
57    = note: `-D clippy::large-digit-groups` implied by `-D warnings`
58
59 error: digits grouped inconsistently by underscores
60   --> $DIR/literals.rs:33:18
61    |
62 LL |     let fail19 = 12_3456_21;
63    |                  ^^^^^^^^^^ help: consider: `12_345_621`
64    |
65    = note: `-D clippy::inconsistent-digit-grouping` implied by `-D warnings`
66
67 error: digits grouped inconsistently by underscores
68   --> $DIR/literals.rs:34:18
69    |
70 LL |     let fail22 = 3__4___23;
71    |                  ^^^^^^^^^ help: consider: `3_423`
72
73 error: digits grouped inconsistently by underscores
74   --> $DIR/literals.rs:35:18
75    |
76 LL |     let fail23 = 3__16___23;
77    |                  ^^^^^^^^^^ help: consider: `31_623`
78
79 error: aborting due to 9 previous errors
80