1 warning: trait objects without an explicit `dyn` are deprecated
2 --> $DIR/bare-trait-objects-path.rs:23:12
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: `#[warn(bare_trait_objects)]` on by default
12 LL | let _: <dyn Dyn>::Ty;
15 error[E0223]: ambiguous associated type
16 --> $DIR/bare-trait-objects-path.rs:23:12
19 | ^^^^^^^ help: use fully-qualified syntax: `<dyn Dyn as Trait>::Ty`
21 warning: trait objects without an explicit `dyn` are deprecated
22 --> $DIR/bare-trait-objects-path.rs:14:5
27 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
28 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
31 LL | <dyn Dyn>::func();
34 warning: trait objects without an explicit `dyn` are deprecated
35 --> $DIR/bare-trait-objects-path.rs:17:5
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>
44 LL | <dyn (::Dyn)>::func();
47 warning: trait objects without an explicit `dyn` are deprecated
48 --> $DIR/bare-trait-objects-path.rs:20:5
53 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
54 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
57 LL | <dyn Dyn>::CONST;
60 error: aborting due to previous error; 4 warnings emitted
62 For more information about this error, try `rustc --explain E0223`.