]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/literals.stderr
deal with multiple prefixed zeros in literals
[rust.git] / clippy_tests / examples / literals.stderr
1 error: inconsistent casing in hexadecimal literal
2   --> literals.rs:14:17
3    |
4 14 |     let fail1 = 0xabCD;
5    |                 ^^^^^^
6    |
7    = note: `-D mixed-case-hex-literals` implied by `-D warnings`
8
9 error: inconsistent casing in hexadecimal literal
10   --> literals.rs:15:17
11    |
12 15 |     let fail2 = 0xabCD_u32;
13    |                 ^^^^^^^^^^
14    |
15    = note: `-D mixed-case-hex-literals` implied by `-D warnings`
16
17 error: inconsistent casing in hexadecimal literal
18   --> literals.rs:16:17
19    |
20 16 |     let fail2 = 0xabCD_isize;
21    |                 ^^^^^^^^^^^^
22    |
23    = note: `-D mixed-case-hex-literals` implied by `-D warnings`
24
25 error: integer type suffix should be separated by an underscore
26   --> literals.rs:17:27
27    |
28 17 |     let fail_multi_zero = 000123usize;
29    |                           ^^^^^^^^^^^
30    |
31    = note: `-D unseparated-literal-suffix` implied by `-D warnings`
32
33 error: this is a decimal constant
34   --> literals.rs:17:27
35    |
36 17 |     let fail_multi_zero = 000123usize;
37    |                           ^^^^^^^^^^^
38    |
39    = note: `-D zero-prefixed-literal` implied by `-D warnings`
40 help: if you mean to use a decimal constant, remove the `0` to remove confusion:
41    |     let fail_multi_zero = 123usize;
42 help: if you mean to use an octal constant, use `0o`:
43    |     let fail_multi_zero = 0o123usize;
44
45 error: integer type suffix should be separated by an underscore
46   --> literals.rs:22:17
47    |
48 22 |     let fail3 = 1234i32;
49    |                 ^^^^^^^
50    |
51    = note: `-D unseparated-literal-suffix` implied by `-D warnings`
52
53 error: integer type suffix should be separated by an underscore
54   --> literals.rs:23:17
55    |
56 23 |     let fail4 = 1234u32;
57    |                 ^^^^^^^
58    |
59    = note: `-D unseparated-literal-suffix` implied by `-D warnings`
60
61 error: integer type suffix should be separated by an underscore
62   --> literals.rs:24:17
63    |
64 24 |     let fail5 = 1234isize;
65    |                 ^^^^^^^^^
66    |
67    = note: `-D unseparated-literal-suffix` implied by `-D warnings`
68
69 error: integer type suffix should be separated by an underscore
70   --> literals.rs:25:17
71    |
72 25 |     let fail6 = 1234usize;
73    |                 ^^^^^^^^^
74    |
75    = note: `-D unseparated-literal-suffix` implied by `-D warnings`
76
77 error: float type suffix should be separated by an underscore
78   --> literals.rs:26:17
79    |
80 26 |     let fail7 = 1.5f32;
81    |                 ^^^^^^
82    |
83    = note: `-D unseparated-literal-suffix` implied by `-D warnings`
84
85 error: this is a decimal constant
86   --> literals.rs:30:17
87    |
88 30 |     let fail8 = 0123;
89    |                 ^^^^
90    |
91    = note: `-D zero-prefixed-literal` implied by `-D warnings`
92 help: if you mean to use a decimal constant, remove the `0` to remove confusion:
93    |     let fail8 = 123;
94 help: if you mean to use an octal constant, use `0o`:
95    |     let fail8 = 0o123;
96
97 error: aborting due to previous error(s)
98
99 error: Could not compile `clippy_tests`.
100
101 To learn more, run the command again with --verbose.