1 error: trait objects without an explicit `dyn` are deprecated
2 --> $DIR/issue-61963.rs:28:14
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>
17 LL + bar: Box<dyn Bar>,
20 error: trait objects without an explicit `dyn` are deprecated
21 --> $DIR/issue-61963.rs:18:1
26 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
27 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
31 LL + dyn pub struct Foo {
34 error: trait objects without an explicit `dyn` are deprecated
35 --> $DIR/issue-61963.rs:28:14
40 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
41 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
45 LL + bar: Box<dyn Bar>,
48 error: trait objects without an explicit `dyn` are deprecated
49 --> $DIR/issue-61963.rs:28:14
54 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
55 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
59 LL + bar: Box<dyn Bar>,
62 error: trait objects without an explicit `dyn` are deprecated
63 --> $DIR/issue-61963.rs:18:1
68 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
69 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
73 LL + dyn pub struct Foo {
76 error: trait objects without an explicit `dyn` are deprecated
77 --> $DIR/issue-61963.rs:18:1
82 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
83 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
87 LL + dyn pub struct Foo {
90 error: trait objects without an explicit `dyn` are deprecated
91 --> $DIR/issue-61963.rs:18:1
96 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
97 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
100 LL - pub struct Foo {
101 LL + dyn pub struct Foo {
104 error: aborting due to 7 previous errors