mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-15 18:15:01 +00:00
23 lines
762 B
Plaintext
23 lines
762 B
Plaintext
error: trait objects without an explicit `dyn` are deprecated
|
|
--> $DIR/ice-3969.rs:25:17
|
|
|
|
|
LL | for<'a> Dst<A + 'a>: Sized,
|
|
| ^^^^^^ help: use `dyn`: `dyn A + 'a`
|
|
|
|
|
= note: `-D bare-trait-objects` implied by `-D warnings`
|
|
|
|
error: trait objects without an explicit `dyn` are deprecated
|
|
--> $DIR/ice-3969.rs:27:16
|
|
|
|
|
LL | let x: Dst<A> = *(Box::new(Dst { x: 1 }) as Box<Dst<A>>);
|
|
| ^ help: use `dyn`: `dyn A`
|
|
|
|
error: trait objects without an explicit `dyn` are deprecated
|
|
--> $DIR/ice-3969.rs:27:57
|
|
|
|
|
LL | let x: Dst<A> = *(Box::new(Dst { x: 1 }) as Box<Dst<A>>);
|
|
| ^ help: use `dyn`: `dyn A`
|
|
|
|
error: aborting due to 3 previous errors
|
|
|