1 error: trait objects without an explicit `dyn` are deprecated
2 --> $DIR/issue-61963.rs:22:14
5 | ^^^ help: use `dyn`: `dyn Bar`
7 note: the lint level is defined here
8 --> $DIR/issue-61963.rs:3:9
10 LL | #![deny(bare_trait_objects)]
12 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
13 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
15 error: trait objects without an explicit `dyn` are deprecated
16 --> $DIR/issue-61963.rs:18:1
19 | ^^^ help: use `dyn`: `dyn pub`
21 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
22 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
24 error: aborting due to 2 previous errors