fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1warning: trait objects without an explicit `dyn` are deprecated 2 --> $DIR/bare-trait-objects-path.rs:23:12 3 | 4LL | let _: Dyn::Ty; 5 | ^^^ 6 | 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 10help: use `dyn` 11 | 12LL | let _: <dyn Dyn>::Ty; 13 | ++++ + 14 15error[E0223]: ambiguous associated type 16 --> $DIR/bare-trait-objects-path.rs:23:12 17 | 18LL | let _: Dyn::Ty; 19 | ^^^^^^^ help: use the fully-qualified path: `<dyn Dyn as Assoc>::Ty` 20 21warning: trait objects without an explicit `dyn` are deprecated 22 --> $DIR/bare-trait-objects-path.rs:14:5 23 | 24LL | Dyn::func(); 25 | ^^^ 26 | 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> 29help: use `dyn` 30 | 31LL | <dyn Dyn>::func(); 32 | ++++ + 33 34warning: trait objects without an explicit `dyn` are deprecated 35 --> $DIR/bare-trait-objects-path.rs:17:5 36 | 37LL | ::Dyn::func(); 38 | ^^^^^ 39 | 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> 42help: use `dyn` 43 | 44LL | <dyn (::Dyn)>::func(); 45 | ++++++ ++ 46 47warning: trait objects without an explicit `dyn` are deprecated 48 --> $DIR/bare-trait-objects-path.rs:20:5 49 | 50LL | Dyn::CONST; 51 | ^^^ 52 | 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> 55help: use `dyn` 56 | 57LL | <dyn Dyn>::CONST; 58 | ++++ + 59 60error: aborting due to previous error; 4 warnings emitted 61 62For more information about this error, try `rustc --explain E0223`.