1 warning: trait objects without an explicit `dyn` are deprecated
2 --> $DIR/issue-58734.rs:20:5
4 LL | Trait::nonexistent(());
7 = note: `#[warn(bare_trait_objects)]` on by default
8 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
9 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
12 LL | <dyn Trait>::nonexistent(());
15 error[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
18 LL | Trait::nonexistent(());
19 | ^^^^^^^^^^^ function or associated item not found in `dyn Trait`
21 error: aborting due to previous error; 1 warning emitted
23 For more information about this error, try `rustc --explain E0599`.