1 warning: trait objects without an explicit `dyn` are deprecated
2 --> $DIR/cap-lints-allow.rs:8:25
4 LL | pub fn function(_x: Box<SomeTrait>) {}
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: requested on the command line with `--force-warn bare-trait-objects`
12 LL | pub fn function(_x: Box<dyn SomeTrait>) {}
15 warning: trait objects without an explicit `dyn` are deprecated
16 --> $DIR/cap-lints-allow.rs:8:25
18 LL | pub fn function(_x: Box<SomeTrait>) {}
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>
25 LL | pub fn function(_x: Box<dyn SomeTrait>) {}
28 warning: trait objects without an explicit `dyn` are deprecated
29 --> $DIR/cap-lints-allow.rs:8:25
31 LL | pub fn function(_x: Box<SomeTrait>) {}
34 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
35 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
38 LL | pub fn function(_x: Box<dyn SomeTrait>) {}
41 warning: 3 warnings emitted