]> git.lizzy.rs Git - rust.git/blob - tests/ui/cenum_impl_drop_cast.stderr
Rollup merge of #106106 - jyn514:remote-tracking-branch, r=Mark-Simulacrum
[rust.git] / tests / ui / cenum_impl_drop_cast.stderr
1 error: cannot cast enum `E` into integer `u32` because it implements `Drop`
2   --> $DIR/cenum_impl_drop_cast.rs:15:13
3    |
4 LL |     let i = e as u32;
5    |             ^^^^^^^^
6    |
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
11    |
12 LL | #![deny(cenum_impl_drop_cast)]
13    |         ^^^^^^^^^^^^^^^^^^^^
14
15 error: aborting due to previous error
16
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
20    |
21 LL |     let i = e as u32;
22    |             ^^^^^^^^
23    |
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
28    |
29 LL | #![deny(cenum_impl_drop_cast)]
30    |         ^^^^^^^^^^^^^^^^^^^^
31