mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-01 12:37:37 +00:00

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
9 lines
217 B
Plaintext
9 lines
217 B
Plaintext
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
|
|
|