2017-02-07 20:05:30 +00:00
|
|
|
error: inconsistent casing in hexadecimal literal
|
2017-05-17 12:19:44 +00:00
|
|
|
--> examples/literals.rs:14:17
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-02-08 13:58:07 +00:00
|
|
|
14 | let fail1 = 0xabCD;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^
|
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D mixed-case-hex-literals` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: inconsistent casing in hexadecimal literal
|
2017-05-17 12:19:44 +00:00
|
|
|
--> examples/literals.rs:15:17
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-02-08 13:58:07 +00:00
|
|
|
15 | let fail2 = 0xabCD_u32;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D mixed-case-hex-literals` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: inconsistent casing in hexadecimal literal
|
2017-05-17 12:19:44 +00:00
|
|
|
--> examples/literals.rs:16:17
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-02-08 13:58:07 +00:00
|
|
|
16 | let fail2 = 0xabCD_isize;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D mixed-case-hex-literals` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: integer type suffix should be separated by an underscore
|
2017-05-17 12:19:44 +00:00
|
|
|
--> examples/literals.rs:21:17
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-02-08 13:58:07 +00:00
|
|
|
21 | let fail3 = 1234i32;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^
|
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D unseparated-literal-suffix` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: integer type suffix should be separated by an underscore
|
2017-05-17 12:19:44 +00:00
|
|
|
--> examples/literals.rs:22:17
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-02-08 13:58:07 +00:00
|
|
|
22 | let fail4 = 1234u32;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D unseparated-literal-suffix` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: integer type suffix should be separated by an underscore
|
2017-05-17 12:19:44 +00:00
|
|
|
--> examples/literals.rs:23:17
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-02-08 13:58:07 +00:00
|
|
|
23 | let fail5 = 1234isize;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D unseparated-literal-suffix` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: integer type suffix should be separated by an underscore
|
2017-05-17 12:19:44 +00:00
|
|
|
--> examples/literals.rs:24:17
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-02-08 13:58:07 +00:00
|
|
|
24 | let fail6 = 1234usize;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D unseparated-literal-suffix` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: float type suffix should be separated by an underscore
|
2017-05-17 12:19:44 +00:00
|
|
|
--> examples/literals.rs:25:17
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2017-02-08 13:58:07 +00:00
|
|
|
25 | let fail7 = 1.5f32;
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^
|
2017-05-17 12:19:44 +00:00
|
|
|
|
|
|
|
|
= note: `-D unseparated-literal-suffix` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: this is a decimal constant
|
2017-05-17 12:19:44 +00:00
|
|
|
--> examples/literals.rs:29:17
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
|
29 | let fail8 = 0123;
|
|
|
|
| ^^^^
|
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
= note: `-D zero-prefixed-literal` implied by `-D warnings`
|
2017-02-07 20:05:30 +00:00
|
|
|
help: if you mean to use a decimal constant, remove the `0` to remove confusion:
|
|
|
|
| let fail8 = 123;
|
2017-05-14 07:56:10 +00:00
|
|
|
help: if you mean to use an octal constant, use `0o`:
|
|
|
|
| let fail8 = 0o123;
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
|
|
error: aborting due to 9 previous errors
|
|
|
|
|
2017-05-17 12:19:44 +00:00
|
|
|
error: Could not compile `clippy_tests`.
|
|
|
|
|
|
|
|
To learn more, run the command again with --verbose.
|