Debian Codegraph @

third_party/rust/async-trait/tests/ui/bare-trait-object.stderr

raw
1 error: trait objects without an explicit `dyn` are deprecated
2 --> tests/ui/bare-trait-object.rs:11:16
3 |
4 11 | impl Trait for Send + Sync {
5 | ^^^^^^^^^^^
6 |
7 = warning: this is accepted in the current edition (Rust 2018) 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 --> tests/ui/bare-trait-object.rs:1:9
11 |
12 1 | #![deny(bare_trait_objects)]
13 | ^^^^^^^^^^^^^^^^^^
14 help: use `dyn`
15 |
16 11 | impl Trait for dyn Send + Sync {
17 | +++
18 help: alternatively use a blanket implementation to implement `Trait` for all types that also implement `Send + Sync`
19 |
20 11 | impl<T: Send + Sync> Trait for T {
21 | ++++++++++++++++ ~