]>
Commit | Line | Data |
---|---|---|
f20569fa XL |
1 | error: trait objects without an explicit `dyn` are deprecated |
2 | --> $DIR/ice-3969.rs:25:17 | |
3 | | | |
4 | LL | for<'a> Dst<A + 'a>: Sized, | |
5 | | ^^^^^^ help: use `dyn`: `dyn A + 'a` | |
6 | | | |
7 | = note: `-D bare-trait-objects` implied by `-D warnings` | |
136023e0 | 8 | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! |
17df50a5 | 9 | = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165> |
f20569fa XL |
10 | |
11 | error: trait objects without an explicit `dyn` are deprecated | |
12 | --> $DIR/ice-3969.rs:27:16 | |
13 | | | |
14 | LL | let x: Dst<A> = *(Box::new(Dst { x: 1 }) as Box<Dst<A>>); | |
15 | | ^ help: use `dyn`: `dyn A` | |
17df50a5 | 16 | | |
136023e0 | 17 | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! |
17df50a5 | 18 | = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165> |
f20569fa XL |
19 | |
20 | error: trait objects without an explicit `dyn` are deprecated | |
21 | --> $DIR/ice-3969.rs:27:57 | |
22 | | | |
23 | LL | let x: Dst<A> = *(Box::new(Dst { x: 1 }) as Box<Dst<A>>); | |
24 | | ^ help: use `dyn`: `dyn A` | |
17df50a5 | 25 | | |
136023e0 | 26 | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! |
17df50a5 | 27 | = note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165> |
f20569fa XL |
28 | |
29 | error: aborting due to 3 previous errors | |
30 |