2022-03-24 13:50:04 +00:00
|
|
|
error: cast of an enum tuple constructor to an integer
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/cast_enum_constructor.rs:13:13
|
2022-03-24 13:50:04 +00:00
|
|
|
|
|
|
|
|
LL | let _ = Foo::Y as usize;
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= note: `-D clippy::cast-enum-constructor` implied by `-D warnings`
|
2023-08-01 12:02:21 +00:00
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::cast_enum_constructor)]`
|
2022-03-24 13:50:04 +00:00
|
|
|
|
|
|
|
error: cast of an enum tuple constructor to an integer
|
2024-02-17 12:16:29 +00:00
|
|
|
--> tests/ui/cast_enum_constructor.rs:16:13
|
2022-03-24 13:50:04 +00:00
|
|
|
|
|
|
|
|
LL | let _ = Foo::Y as isize;
|
|
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
|