blob: 6670c48cc1b9020433715decd06c418374c7de7c [file] [log] [blame]
Andrew Walbrand1b91c72020-08-11 17:12:08 +01001error: trait objects without an explicit `dyn` are deprecated
David LeGareffb07e72022-03-01 18:48:27 +00002 --> tests/ui/bare-trait-object.rs:11:16
Andrew Walbrand1b91c72020-08-11 17:12:08 +01003 |
411 | impl Trait for Send + Sync {
5 | ^^^^^^^^^^^ help: use `dyn`: `dyn Send + Sync`
6 |
7note: the lint level is defined here
David LeGareffb07e72022-03-01 18:48:27 +00008 --> tests/ui/bare-trait-object.rs:1:9
Andrew Walbrand1b91c72020-08-11 17:12:08 +01009 |
101 | #![deny(bare_trait_objects)]
11 | ^^^^^^^^^^^^^^^^^^
Joel Galensonaa9cbeb2021-08-09 10:24:16 -070012 = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
David LeGareffb07e72022-03-01 18:48:27 +000013 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>