2021-04-13 09:55:54 -05:00
|
|
|
error: trait objects without an explicit `dyn` are deprecated
|
|
|
|
--> $DIR/dyn-2018-edition-lint.rs:4:17
|
|
|
|
|
|
|
|
|
LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
|
|
|
|
| ^^^^^^^^^ help: use `dyn`: `dyn SomeTrait`
|
|
|
|
|
|
|
|
|
note: the lint level is defined here
|
|
|
|
--> $DIR/dyn-2018-edition-lint.rs:2:8
|
|
|
|
|
|
|
|
|
LL | #[deny(bare_trait_objects)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^
|
2021-06-15 10:16:21 -05:00
|
|
|
= warning: this is valid in the current edition (Rust 2018) but is not accepted in the Rust 2021 edition!
|
2021-04-13 09:55:54 -05:00
|
|
|
= note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
|
|
|
|
|
|
|
|
error: trait objects without an explicit `dyn` are deprecated
|
|
|
|
--> $DIR/dyn-2018-edition-lint.rs:4:35
|
|
|
|
|
|
|
|
|
LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
|
|
|
|
| ^^^^^^^^^ help: use `dyn`: `dyn SomeTrait`
|
|
|
|
|
|
2021-06-15 10:16:21 -05:00
|
|
|
= warning: this is valid in the current edition (Rust 2018) but is not accepted in the Rust 2021 edition!
|
2021-04-13 09:55:54 -05:00
|
|
|
= note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
|
|
|
|
|
|
|
|
error: trait objects without an explicit `dyn` are deprecated
|
|
|
|
--> $DIR/dyn-2018-edition-lint.rs:9:14
|
|
|
|
|
|
|
|
|
LL | let _x: &SomeTrait = todo!();
|
|
|
|
| ^^^^^^^^^ help: use `dyn`: `dyn SomeTrait`
|
|
|
|
|
|
2021-06-15 10:16:21 -05:00
|
|
|
= warning: this is valid in the current edition (Rust 2018) but is not accepted in the Rust 2021 edition!
|
2021-04-13 09:55:54 -05:00
|
|
|
= note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
|
|
|
|
|
|
|
|
error: aborting due to 3 previous errors
|
|
|
|
|