43 lines
1.9 KiB
Plaintext
43 lines
1.9 KiB
Plaintext
error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021
|
|
--> $DIR/lint-tail-expr-drop-order.rs:29:15
|
|
|
|
|
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
|
|
--> $DIR/lint-tail-expr-drop-order.rs:8:9
|
|
|
|
|
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
|
|
--> $DIR/lint-tail-expr-drop-order.rs:36:23
|
|
|
|
|
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
|
|
--> $DIR/lint-tail-expr-drop-order.rs:65:19
|
|
|
|
|
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
|
|
|