]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/issue-61963.stderr
Rollup merge of #90420 - GuillaumeGomez:rustdoc-internals-feature, r=camelid
[rust.git] / src / test / ui / suggestions / issue-61963.stderr
1 error: trait objects without an explicit `dyn` are deprecated
2   --> $DIR/issue-61963.rs:22:14
3    |
4 LL |     bar: Box<Bar>,
5    |              ^^^ help: use `dyn`: `dyn Bar`
6    |
7 note: the lint level is defined here
8   --> $DIR/issue-61963.rs:3:9
9    |
10 LL | #![deny(bare_trait_objects)]
11    |         ^^^^^^^^^^^^^^^^^^
12    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
13    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
14
15 error: trait objects without an explicit `dyn` are deprecated
16   --> $DIR/issue-61963.rs:18:1
17    |
18 LL | pub struct Foo {
19    | ^^^ help: use `dyn`: `dyn pub`
20    |
21    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
22    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
23
24 error: aborting due to 2 previous errors
25