mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-10 15:14:29 +00:00
59 lines
1.9 KiB
Text
59 lines
1.9 KiB
Text
error: C-like enum variant discriminant is not portable to 32-bit targets
|
|
--> tests/ui/enum_clike_unportable_variant.rs:8:5
|
|
|
|
|
LL | X = 0x1_0000_0000,
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::enum-clike-unportable-variant` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::enum_clike_unportable_variant)]`
|
|
|
|
error: C-like enum variant discriminant is not portable to 32-bit targets
|
|
--> tests/ui/enum_clike_unportable_variant.rs:17:5
|
|
|
|
|
LL | X = 0x1_0000_0000,
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: C-like enum variant discriminant is not portable to 32-bit targets
|
|
--> tests/ui/enum_clike_unportable_variant.rs:21:5
|
|
|
|
|
LL | A = 0xFFFF_FFFF,
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: C-like enum variant discriminant is not portable to 32-bit targets
|
|
--> tests/ui/enum_clike_unportable_variant.rs:29:5
|
|
|
|
|
LL | Z = 0xFFFF_FFFF,
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: C-like enum variant discriminant is not portable to 32-bit targets
|
|
--> tests/ui/enum_clike_unportable_variant.rs:31:5
|
|
|
|
|
LL | A = 0x1_0000_0000,
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: C-like enum variant discriminant is not portable to 32-bit targets
|
|
--> tests/ui/enum_clike_unportable_variant.rs:34:5
|
|
|
|
|
LL | C = (i32::MIN as isize) - 1,
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: C-like enum variant discriminant is not portable to 32-bit targets
|
|
--> tests/ui/enum_clike_unportable_variant.rs:41:5
|
|
|
|
|
LL | Z = 0xFFFF_FFFF,
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: C-like enum variant discriminant is not portable to 32-bit targets
|
|
--> tests/ui/enum_clike_unportable_variant.rs:43:5
|
|
|
|
|
LL | A = 0x1_0000_0000,
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: C-like enum variant discriminant is not portable to 32-bit targets
|
|
--> tests/ui/enum_clike_unportable_variant.rs:49:5
|
|
|
|
|
LL | X = <usize as Trait>::Number,
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 9 previous errors
|
|
|