mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
47 lines
1.7 KiB
Text
47 lines
1.7 KiB
Text
error: integer literal has a better hexadecimal representation
|
|
--> tests/ui/decimal_literal_representation.rs:16:9
|
|
|
|
|
LL | 32_773, // 0x8005
|
|
| ^^^^^^ help: consider: `0x8005`
|
|
|
|
|
= note: `-D clippy::decimal-literal-representation` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::decimal_literal_representation)]`
|
|
|
|
error: integer literal has a better hexadecimal representation
|
|
--> tests/ui/decimal_literal_representation.rs:17:9
|
|
|
|
|
LL | 65_280, // 0xFF00
|
|
| ^^^^^^ help: consider: `0xFF00`
|
|
|
|
error: integer literal has a better hexadecimal representation
|
|
--> tests/ui/decimal_literal_representation.rs:18:9
|
|
|
|
|
LL | 2_131_750_927, // 0x7F0F_F00F
|
|
| ^^^^^^^^^^^^^ help: consider: `0x7F0F_F00F`
|
|
|
|
error: integer literal has a better hexadecimal representation
|
|
--> tests/ui/decimal_literal_representation.rs:19:9
|
|
|
|
|
LL | 2_147_483_647, // 0x7FFF_FFFF
|
|
| ^^^^^^^^^^^^^ help: consider: `0x7FFF_FFFF`
|
|
|
|
error: integer literal has a better hexadecimal representation
|
|
--> tests/ui/decimal_literal_representation.rs:21:9
|
|
|
|
|
LL | 4_042_322_160, // 0xF0F0_F0F0
|
|
| ^^^^^^^^^^^^^ help: consider: `0xF0F0_F0F0`
|
|
|
|
error: integer literal has a better hexadecimal representation
|
|
--> tests/ui/decimal_literal_representation.rs:22:9
|
|
|
|
|
LL | 32_773usize, // 0x8005_usize
|
|
| ^^^^^^^^^^^ help: consider: `0x8005_usize`
|
|
|
|
error: integer literal has a better hexadecimal representation
|
|
--> tests/ui/decimal_literal_representation.rs:23:9
|
|
|
|
|
LL | 2_131_750_927isize, // 0x7F0F_F00F_isize
|
|
| ^^^^^^^^^^^^^^^^^^ help: consider: `0x7F0F_F00F_isize`
|
|
|
|
error: aborting due to 7 previous errors
|
|
|