mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 09:44:08 +00:00
17 lines
458 B
Plaintext
17 lines
458 B
Plaintext
error: cast of an enum tuple constructor to an integer
|
|
--> $DIR/cast_enum_constructor.rs:13:13
|
|
|
|
|
LL | let _ = Foo::Y as usize;
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
|
= note: `-D clippy::cast-enum-constructor` implied by `-D warnings`
|
|
|
|
error: cast of an enum tuple constructor to an integer
|
|
--> $DIR/cast_enum_constructor.rs:14:13
|
|
|
|
|
LL | let _ = Foo::Y as isize;
|
|
| ^^^^^^^^^^^^^^^
|
|
|
|
error: aborting due to 2 previous errors
|
|
|