rust-clippy/tests/ui/cast_enum_constructor.stderr

17 lines
458 B
Text
Raw Normal View History

2022-03-17 20:04:45 +00:00
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:16:13
2022-03-17 20:04:45 +00:00
|
LL | let _ = Foo::Y as isize;
| ^^^^^^^^^^^^^^^
error: aborting due to 2 previous errors