1 error: cannot cast enum `E` into integer `u32` because it implements `Drop`
2 --> $DIR/cenum_impl_drop_cast.rs:15:13
7 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
8 = note: for more information, see issue #73333 <https://github.com/rust-lang/rust/issues/73333>
9 note: the lint level is defined here
10 --> $DIR/cenum_impl_drop_cast.rs:1:9
12 LL | #![deny(cenum_impl_drop_cast)]
13 | ^^^^^^^^^^^^^^^^^^^^
15 error: aborting due to previous error
17 Future incompatibility report: Future breakage diagnostic:
18 error: cannot cast enum `E` into integer `u32` because it implements `Drop`
19 --> $DIR/cenum_impl_drop_cast.rs:15:13
21 LL | let i = e as u32;
24 = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
25 = note: for more information, see issue #73333 <https://github.com/rust-lang/rust/issues/73333>
26 note: the lint level is defined here
27 --> $DIR/cenum_impl_drop_cast.rs:1:9
29 LL | #![deny(cenum_impl_drop_cast)]
30 | ^^^^^^^^^^^^^^^^^^^^