1 error: trait objects without an explicit `dyn` are deprecated
2 --> $DIR/issue-61963.rs:28:14
7 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
8 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
9 note: the lint level is defined here
10 --> $DIR/issue-61963.rs:3:9
12 LL | #![deny(bare_trait_objects)]
16 LL | bar: Box<dyn Bar>,
19 error: trait objects without an explicit `dyn` are deprecated
20 --> $DIR/issue-61963.rs:18:1
25 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
26 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
29 LL | dyn pub struct Foo {
32 error: trait objects without an explicit `dyn` are deprecated
33 --> $DIR/issue-61963.rs:28:14
38 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
39 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
42 LL | bar: Box<dyn Bar>,
45 error: trait objects without an explicit `dyn` are deprecated
46 --> $DIR/issue-61963.rs:28:14
51 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
52 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
55 LL | bar: Box<dyn Bar>,
58 error: trait objects without an explicit `dyn` are deprecated
59 --> $DIR/issue-61963.rs:18:1
64 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
65 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
68 LL | dyn pub struct Foo {
71 error: trait objects without an explicit `dyn` are deprecated
72 --> $DIR/issue-61963.rs:18:1
77 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
78 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
81 LL | dyn pub struct Foo {
84 error: trait objects without an explicit `dyn` are deprecated
85 --> $DIR/issue-61963.rs:18:1
90 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
91 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
94 LL | dyn pub struct Foo {
97 error: aborting due to 7 previous errors