fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1warning: trait objects without an explicit `dyn` are deprecated 2 --> $DIR/issue-58734.rs:20:5 3 | 4LL | Trait::nonexistent(()); 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 | <dyn Trait>::nonexistent(()); 13 | ++++ + 14 15error[E0599]: no function or associated item named `nonexistent` found for trait object `dyn Trait` in the current scope 16 --> $DIR/issue-58734.rs:20:12 17 | 18LL | Trait::nonexistent(()); 19 | ^^^^^^^^^^^ function or associated item not found in `dyn Trait` 20 21error: aborting due to previous error; 1 warning emitted 22 23For more information about this error, try `rustc --explain E0599`.