]> git.lizzy.rs Git - rust.git/blob - tests/ui/cast_enum_constructor.stderr
Auto merge of #9684 - kraktus:ref_option_ref, r=xFrednet
[rust.git] / tests / ui / cast_enum_constructor.stderr
1 error: cast of an enum tuple constructor to an integer
2   --> $DIR/cast_enum_constructor.rs:13:13
3    |
4 LL |     let _ = Foo::Y as usize;
5    |             ^^^^^^^^^^^^^^^
6    |
7    = note: `-D clippy::cast-enum-constructor` implied by `-D warnings`
8
9 error: cast of an enum tuple constructor to an integer
10   --> $DIR/cast_enum_constructor.rs:14:13
11    |
12 LL |     let _ = Foo::Y as isize;
13    |             ^^^^^^^^^^^^^^^
14
15 error: aborting due to 2 previous errors
16