2020-08-28 14:10:16 +00:00
|
|
|
error: C-like enum variant discriminant is not portable to 32-bit targets
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/enum_clike_unportable_variant.rs:8:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | X = 0x1_0000_0000,
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
2018-08-01 14:30:44 +00:00
|
|
|
= note: `-D clippy::enum-clike-unportable-variant` implied by `-D warnings`
|
2023-09-07 19:43:06 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::enum_clike_unportable_variant)]`
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2020-08-28 14:10:16 +00:00
|
|
|
error: C-like enum variant discriminant is not portable to 32-bit targets
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/enum_clike_unportable_variant.rs:17:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | X = 0x1_0000_0000,
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
2020-08-28 14:10:16 +00:00
|
|
|
error: C-like enum variant discriminant is not portable to 32-bit targets
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/enum_clike_unportable_variant.rs:21:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | A = 0xFFFF_FFFF,
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
2020-08-28 14:10:16 +00:00
|
|
|
error: C-like enum variant discriminant is not portable to 32-bit targets
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/enum_clike_unportable_variant.rs:29:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | Z = 0xFFFF_FFFF,
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
2020-08-28 14:10:16 +00:00
|
|
|
error: C-like enum variant discriminant is not portable to 32-bit targets
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/enum_clike_unportable_variant.rs:31:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | A = 0x1_0000_0000,
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
2020-08-28 14:10:16 +00:00
|
|
|
error: C-like enum variant discriminant is not portable to 32-bit targets
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/enum_clike_unportable_variant.rs:34:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2020-04-07 22:04:33 +00:00
|
|
|
LL | C = (i32::MIN as isize) - 1,
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2017-02-07 20:05:30 +00:00
|
|
|
|
2020-08-28 14:10:16 +00:00
|
|
|
error: C-like enum variant discriminant is not portable to 32-bit targets
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/enum_clike_unportable_variant.rs:41:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | Z = 0xFFFF_FFFF,
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
2020-08-28 14:10:16 +00:00
|
|
|
error: C-like enum variant discriminant is not portable to 32-bit targets
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/enum_clike_unportable_variant.rs:43:5
|
2017-02-07 20:05:30 +00:00
|
|
|
|
|
2018-12-27 15:57:55 +00:00
|
|
|
LL | A = 0x1_0000_0000,
|
2017-02-07 20:05:30 +00:00
|
|
|
| ^^^^^^^^^^^^^^^^^
|
|
|
|
|
2020-08-28 14:10:16 +00:00
|
|
|
error: C-like enum variant discriminant is not portable to 32-bit targets
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/enum_clike_unportable_variant.rs:49:5
|
2020-01-30 02:43:19 +00:00
|
|
|
|
|
|
|
|
LL | X = <usize as Trait>::Number,
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 9 previous errors
|
2018-01-16 16:06:27 +00:00
|
|
|
|