mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 05:33:27 +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:17:5
|
|
|
|
|
17 | 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:24:5
|
|
|
|
|
24 | X = 0x1_0000_0000,
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: Clike enum variant discriminant is not portable to 32-bit targets
|
|
--> $DIR/enums_clike.rs:27:5
|
|
|
|
|
27 | A = 0xFFFF_FFFF,
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: Clike enum variant discriminant is not portable to 32-bit targets
|
|
--> $DIR/enums_clike.rs:34:5
|
|
|
|
|
34 | Z = 0xFFFF_FFFF,
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: Clike enum variant discriminant is not portable to 32-bit targets
|
|
--> $DIR/enums_clike.rs:35:5
|
|
|
|
|
35 | A = 0x1_0000_0000,
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: Clike enum variant discriminant is not portable to 32-bit targets
|
|
--> $DIR/enums_clike.rs:37:5
|
|
|
|
|
37 | C = (std::i32::MIN as isize) - 1,
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
error: Clike enum variant discriminant is not portable to 32-bit targets
|
|
--> $DIR/enums_clike.rs:43:5
|
|
|
|
|
43 | Z = 0xFFFF_FFFF,
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: Clike enum variant discriminant is not portable to 32-bit targets
|
|
--> $DIR/enums_clike.rs:44:5
|
|
|
|
|
44 | A = 0x1_0000_0000,
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 8 previous errors
|
|
|