2024-08-04 14:50:15 -05:00
|
|
|
error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
|
2024-10-20 15:47:02 -05:00
|
|
|
--> $DIR/lint-tail-expr-drop-order.rs:27:15
|
2024-08-04 14:50:15 -05:00
|
|
|
|
|
|
|
|
LL | let x = LoudDropper;
|
|
|
|
| - these values have significant drop implementation and will observe changes in drop order under Edition 2024
|
|
|
|
LL | // Should lint
|
|
|
|
LL | x.get() + LoudDropper.get()
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= warning: this changes meaning in Rust 2024
|
|
|
|
= note: for more information, see issue #123739 <https://github.com/rust-lang/rust/issues/123739>
|
|
|
|
note: the lint level is defined here
|
2024-10-20 15:47:02 -05:00
|
|
|
--> $DIR/lint-tail-expr-drop-order.rs:7:9
|
2024-08-04 14:50:15 -05:00
|
|
|
|
|
|
|
|
LL | #![deny(tail_expr_drop_order)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
|
2024-10-20 15:47:02 -05:00
|
|
|
--> $DIR/lint-tail-expr-drop-order.rs:34:23
|
2024-08-04 14:50:15 -05:00
|
|
|
|
|
|
|
|
LL | let x = LoudDropper;
|
|
|
|
| - these values have significant drop implementation and will observe changes in drop order under Edition 2024
|
|
|
|
LL | move || x.get() + LoudDropper.get()
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= warning: this changes meaning in Rust 2024
|
|
|
|
= note: for more information, see issue #123739 <https://github.com/rust-lang/rust/issues/123739>
|
|
|
|
|
|
|
|
error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
|
2024-10-20 15:47:02 -05:00
|
|
|
--> $DIR/lint-tail-expr-drop-order.rs:63:19
|
2024-08-04 14:50:15 -05:00
|
|
|
|
|
|
|
|
LL | let x = LoudDropper;
|
|
|
|
| - these values have significant drop implementation and will observe changes in drop order under Edition 2024
|
|
|
|
LL | // Should lint
|
|
|
|
LL | x.get() + LoudDropper.get()
|
|
|
|
| ^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
= warning: this changes meaning in Rust 2024
|
|
|
|
= note: for more information, see issue #123739 <https://github.com/rust-lang/rust/issues/123739>
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|