]> git.lizzy.rs Git - rust.git/blob - clippy_tests/examples/literals.stderr
Merge pull request #1766 from Manishearth/testing_refactor
[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:21:17
27    |
28 21 |     let fail3 = 1234i32;
29    |                 ^^^^^^^
30    |
31    = note: `-D unseparated-literal-suffix` implied by `-D warnings`
32
33 error: integer type suffix should be separated by an underscore
34   --> literals.rs:22:17
35    |
36 22 |     let fail4 = 1234u32;
37    |                 ^^^^^^^
38    |
39    = note: `-D unseparated-literal-suffix` implied by `-D warnings`
40
41 error: integer type suffix should be separated by an underscore
42   --> literals.rs:23:17
43    |
44 23 |     let fail5 = 1234isize;
45    |                 ^^^^^^^^^
46    |
47    = note: `-D unseparated-literal-suffix` implied by `-D warnings`
48
49 error: integer type suffix should be separated by an underscore
50   --> literals.rs:24:17
51    |
52 24 |     let fail6 = 1234usize;
53    |                 ^^^^^^^^^
54    |
55    = note: `-D unseparated-literal-suffix` implied by `-D warnings`
56
57 error: float type suffix should be separated by an underscore
58   --> literals.rs:25:17
59    |
60 25 |     let fail7 = 1.5f32;
61    |                 ^^^^^^
62    |
63    = note: `-D unseparated-literal-suffix` implied by `-D warnings`
64
65 error: this is a decimal constant
66   --> literals.rs:29:17
67    |
68 29 |     let fail8 = 0123;
69    |                 ^^^^
70    |
71    = note: `-D zero-prefixed-literal` implied by `-D warnings`
72 help: if you mean to use a decimal constant, remove the `0` to remove confusion:
73    |     let fail8 = 123;
74 help: if you mean to use an octal constant, use `0o`:
75    |     let fail8 = 0o123;
76
77 error: aborting due to 9 previous errors
78
79 error: Could not compile `clippy_tests`.
80
81 To learn more, run the command again with --verbose.