summary refs log tree commit diff
path: root/src/test/ui/lint/bare-trait-objects-path.stderr
blob: 3477b01b6b567374283133ef3028ee8826973a16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
error[E0223]: ambiguous associated type
  --> $DIR/bare-trait-objects-path.rs:23:12
   |
LL |     let _: Dyn::Ty;
   |            ^^^^^^^ help: use fully-qualified syntax: `<dyn Dyn as Trait>::Ty`

warning: trait objects without an explicit `dyn` are deprecated
  --> $DIR/bare-trait-objects-path.rs:14:5
   |
LL |     Dyn::func();
   |     ^^^ help: use `dyn`: `<dyn Dyn>`
   |
   = note: `#[warn(bare_trait_objects)]` on by default
   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
   = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>

warning: trait objects without an explicit `dyn` are deprecated
  --> $DIR/bare-trait-objects-path.rs:17:5
   |
LL |     ::Dyn::func();
   |     ^^^^^ help: use `dyn`: `<dyn (::Dyn)>`
   |
   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
   = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>

warning: trait objects without an explicit `dyn` are deprecated
  --> $DIR/bare-trait-objects-path.rs:20:5
   |
LL |     Dyn::CONST;
   |     ^^^ help: use `dyn`: `<dyn Dyn>`
   |
   = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
   = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>

error: aborting due to previous error; 3 warnings emitted

For more information about this error, try `rustc --explain E0223`.