rust/tests/ui/crashes/ice-3969.stderr

31 lines
1.4 KiB
Plaintext
Raw Normal View History

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`
2021-06-25 08:29:14 -05:00
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
2021-08-12 03:48:16 -05:00
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
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`
2021-04-29 11:37:22 -05:00
|
2021-06-25 08:29:14 -05:00
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
2021-08-12 03:48:16 -05:00
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
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`
2021-04-29 11:37:22 -05:00
|
2021-06-25 08:29:14 -05:00
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
2021-08-12 03:48:16 -05:00
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
error: aborting due to 3 previous errors