rust/tests/ui/cenum_impl_drop_cast.stderr
Eric Huss e0bbeb7a00 Make cenum_impl_drop_cast a hard error
This changes the `cenum_impl_drop_cast` lint to be a hard error. This
lint has been deny-by-default and warning in dependencies since
https://github.com/rust-lang/rust/pull/97652 about 2.5 years ago.

Closes https://github.com/rust-lang/rust/issues/73333
2025-01-23 16:45:19 -08:00

8 lines
217 B
Text

error: cannot cast enum `E` into integer `u32` because it implements `Drop`
--> $DIR/cenum_impl_drop_cast.rs:13:13
|
LL | let i = e as u32;
| ^^^^^^^^
error: aborting due to 1 previous error