1error: trait objects without an explicit `dyn` are deprecated 2 --> tests/ui/bare-trait-object.rs:11:16 3 | 411 | impl Trait for Send + Sync { 5 | ^^^^^^^^^^^ help: use `dyn`: `dyn Send + Sync` 6 | 7note: the lint level is defined here 8 --> tests/ui/bare-trait-object.rs:1:9 9 | 101 | #![deny(bare_trait_objects)] 11 | ^^^^^^^^^^^^^^^^^^ 12 = warning: this is accepted in the current edition (Rust 2018) 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> 14