mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 21:23:56 +00:00
52 lines
1.4 KiB
Text
52 lines
1.4 KiB
Text
error: Clike enum variant discriminant is not portable to 32-bit targets
|
|
--> $DIR/enums_clike.rs:22:5
|
|
|
|
|
22 | X = 0x1_0000_0000,
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::enum-clike-unportable-variant` implied by `-D warnings`
|
|
|
|
error: Clike enum variant discriminant is not portable to 32-bit targets
|
|
--> $DIR/enums_clike.rs:29:5
|
|
|
|
|
29 | X = 0x1_0000_0000,
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: Clike enum variant discriminant is not portable to 32-bit targets
|
|
--> $DIR/enums_clike.rs:32:5
|
|
|
|
|
32 | A = 0xFFFF_FFFF,
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: Clike enum variant discriminant is not portable to 32-bit targets
|
|
--> $DIR/enums_clike.rs:39:5
|
|
|
|
|
39 | Z = 0xFFFF_FFFF,
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: Clike enum variant discriminant is not portable to 32-bit targets
|
|
--> $DIR/enums_clike.rs:40:5
|
|
|
|
|
40 | A = 0x1_0000_0000,
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: Clike enum variant discriminant is not portable to 32-bit targets
|
|
--> $DIR/enums_clike.rs:42:5
|
|
|
|
|
42 | C = (std::i32::MIN as isize) - 1,
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: Clike enum variant discriminant is not portable to 32-bit targets
|
|
--> $DIR/enums_clike.rs:48:5
|
|
|
|
|
48 | Z = 0xFFFF_FFFF,
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: Clike enum variant discriminant is not portable to 32-bit targets
|
|
--> $DIR/enums_clike.rs:49:5
|
|
|
|
|
49 | A = 0x1_0000_0000,
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 8 previous errors
|
|
|