]>
Commit | Line | Data |
---|---|---|
416331ca | 1 | error: trait objects without an explicit `dyn` are deprecated |
17df50a5 | 2 | --> $DIR/issue-61963.rs:22:14 |
416331ca XL |
3 | | |
4 | LL | bar: Box<Bar>, | |
5 | | ^^^ help: use `dyn`: `dyn Bar` | |
6 | | | |
74b04a01 | 7 | note: the lint level is defined here |
416331ca XL |
8 | --> $DIR/issue-61963.rs:3:9 |
9 | | | |
10 | LL | #![deny(bare_trait_objects)] | |
11 | | ^^^^^^^^^^^^^^^^^^ | |
136023e0 | 12 | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! |
17df50a5 | 13 | = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165> |
416331ca | 14 | |
f9f354fc XL |
15 | error: trait objects without an explicit `dyn` are deprecated |
16 | --> $DIR/issue-61963.rs:18:1 | |
17 | | | |
18 | LL | pub struct Foo { | |
19 | | ^^^ help: use `dyn`: `dyn pub` | |
17df50a5 | 20 | | |
136023e0 | 21 | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! |
17df50a5 | 22 | = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165> |
f9f354fc XL |
23 | |
24 | error: aborting due to 2 previous errors | |
416331ca | 25 |