]> git.proxmox.com Git - rustc.git/blame - src/test/ui/suggestions/issue-61963.stderr
New upstream version 1.55.0+dfsg1
[rustc.git] / src / test / ui / suggestions / issue-61963.stderr
CommitLineData
416331ca 1error: trait objects without an explicit `dyn` are deprecated
17df50a5 2 --> $DIR/issue-61963.rs:22:14
416331ca
XL
3 |
4LL | bar: Box<Bar>,
5 | ^^^ help: use `dyn`: `dyn Bar`
6 |
74b04a01 7note: the lint level is defined here
416331ca
XL
8 --> $DIR/issue-61963.rs:3:9
9 |
10LL | #![deny(bare_trait_objects)]
11 | ^^^^^^^^^^^^^^^^^^
136023e0 12 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
17df50a5 13 = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
416331ca 14
f9f354fc
XL
15error: trait objects without an explicit `dyn` are deprecated
16 --> $DIR/issue-61963.rs:18:1
17 |
18LL | pub struct Foo {
19 | ^^^ help: use `dyn`: `dyn pub`
17df50a5 20 |
136023e0 21 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
17df50a5 22 = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
f9f354fc
XL
23
24error: aborting due to 2 previous errors
416331ca 25