]> git.proxmox.com Git - rustc.git/blob - src/test/ui/lint/bare-trait-objects-path.stderr
New upstream version 1.52.0~beta.3+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:17: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
15 warning: trait objects without an explicit `dyn` are deprecated
16 --> $DIR/bare-trait-objects-path.rs:15:5
17 |
18 LL | ::Dyn::func();
19 | ^^^^^ help: use `dyn`: `<dyn (::Dyn)>`
20
21 warning: trait objects without an explicit `dyn` are deprecated
22 --> $DIR/bare-trait-objects-path.rs:16:5
23 |
24 LL | Dyn::CONST;
25 | ^^^ help: use `dyn`: `<dyn Dyn>`
26
27 error: aborting due to previous error; 3 warnings emitted
28
29 For more information about this error, try `rustc --explain E0223`.