fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
1.2 KiB31 linesraw
1error: cannot cast enum `E` into integer `u32` because it implements `Drop`
2  --> $DIR/cenum_impl_drop_cast.rs:15:13
3   |
4LL |     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>
9note: the lint level is defined here
10  --> $DIR/cenum_impl_drop_cast.rs:1:9
11   |
12LL | #![deny(cenum_impl_drop_cast)]
13   |         ^^^^^^^^^^^^^^^^^^^^
14
15error: aborting due to previous error
16
17Future incompatibility report: Future breakage diagnostic:
18error: cannot cast enum `E` into integer `u32` because it implements `Drop`
19  --> $DIR/cenum_impl_drop_cast.rs:15:13
20   |
21LL |     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>
26note: the lint level is defined here
27  --> $DIR/cenum_impl_drop_cast.rs:1:9
28   |
29LL | #![deny(cenum_impl_drop_cast)]
30   |         ^^^^^^^^^^^^^^^^^^^^
31