]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/bare-trait-objects-path.stderr
Auto merge of #106884 - clubby789:fieldless-enum-debug, r=michaelwoerister
[rust.git] / tests / ui / lint / bare-trait-objects-path.stderr
1 warning: trait objects without an explicit `dyn` are deprecated
2   --> $DIR/bare-trait-objects-path.rs:23:12
3    |
4 LL |     let _: Dyn::Ty;
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
10 help: use `dyn`
11    |
12 LL |     let _: <dyn Dyn>::Ty;
13    |            ++++    +
14
15 error[E0223]: ambiguous associated type
16   --> $DIR/bare-trait-objects-path.rs:23:12
17    |
18 LL |     let _: Dyn::Ty;
19    |            ^^^^^^^ help: use the fully-qualified path: `<dyn Dyn as Assoc>::Ty`
20
21 warning: trait objects without an explicit `dyn` are deprecated
22   --> $DIR/bare-trait-objects-path.rs:14:5
23    |
24 LL |     Dyn::func();
25    |     ^^^
26    |
27    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
28    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
29 help: use `dyn`
30    |
31 LL |     <dyn Dyn>::func();
32    |     ++++    +
33
34 warning: trait objects without an explicit `dyn` are deprecated
35   --> $DIR/bare-trait-objects-path.rs:17:5
36    |
37 LL |     ::Dyn::func();
38    |     ^^^^^
39    |
40    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
41    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
42 help: use `dyn`
43    |
44 LL |     <dyn (::Dyn)>::func();
45    |     ++++++     ++
46
47 warning: trait objects without an explicit `dyn` are deprecated
48   --> $DIR/bare-trait-objects-path.rs:20:5
49    |
50 LL |     Dyn::CONST;
51    |     ^^^
52    |
53    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
54    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
55 help: use `dyn`
56    |
57 LL |     <dyn Dyn>::CONST;
58    |     ++++    +
59
60 error: aborting due to previous error; 4 warnings emitted
61
62 For more information about this error, try `rustc --explain E0223`.