]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/bare-trait-objects-path.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / lint / bare-trait-objects-path.stderr
1 error[E0223]: ambiguous associated type
2 --> $DIR/bare-trait-objects-path.rs:23:12
3 |
4 LL | let _: Dyn::Ty;
5 | ^^^^^^^ help: use fully-qualified syntax: `<dyn Dyn as Trait>::Ty`
6
7 warning: trait objects without an explicit `dyn` are deprecated
8 --> $DIR/bare-trait-objects-path.rs:14:5
9 |
10 LL | Dyn::func();
11 | ^^^ help: use `dyn`: `<dyn Dyn>`
12 |
13 = note: `#[warn(bare_trait_objects)]` on by default
14 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
15 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
16
17 warning: trait objects without an explicit `dyn` are deprecated
18 --> $DIR/bare-trait-objects-path.rs:17:5
19 |
20 LL | ::Dyn::func();
21 | ^^^^^ help: use `dyn`: `<dyn (::Dyn)>`
22 |
23 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
24 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
25
26 warning: trait objects without an explicit `dyn` are deprecated
27 --> $DIR/bare-trait-objects-path.rs:20:5
28 |
29 LL | Dyn::CONST;
30 | ^^^ help: use `dyn`: `<dyn Dyn>`
31 |
32 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
33 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
34
35 error: aborting due to previous error; 3 warnings emitted
36
37 For more information about this error, try `rustc --explain E0223`.