|
1 | | -error: trait objects without an explicit `dyn` are deprecated |
2 | | - --> $DIR/ice-3969.rs:25:17 |
| 1 | +error: trait bound str: std::marker::Sized does not depend on any type or lifetime parameters |
| 2 | + --> $DIR/ice-3969.rs:20:10 |
3 | 3 | | |
4 | | -LL | for<'a> Dst<A + 'a>: Sized, |
5 | | - | ^^^^^^ help: use `dyn`: `dyn A + 'a` |
| 4 | +LL | str: Sized; |
| 5 | + | ^^^^^ |
6 | 6 | | |
7 | | - = note: `-D bare-trait-objects` implied by `-D warnings` |
8 | | - = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! |
9 | | - = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> |
| 7 | + = note: `-D trivial-bounds` implied by `-D warnings` |
10 | 8 |
|
11 | | -error: trait objects without an explicit `dyn` are deprecated |
12 | | - --> $DIR/ice-3969.rs:27:16 |
| 9 | +error: trait bound for<'a> Dst<(dyn A + 'a)>: std::marker::Sized does not depend on any type or lifetime parameters |
| 10 | + --> $DIR/ice-3969.rs:24:30 |
13 | 11 | | |
14 | | -LL | let x: Dst<A> = *(Box::new(Dst { x: 1 }) as Box<Dst<A>>); |
15 | | - | ^ help: use `dyn`: `dyn A` |
| 12 | +LL | for<'a> Dst<dyn A + 'a>: Sized, |
| 13 | + | ^^^^^ |
| 14 | + |
| 15 | +error: trait bound str: std::marker::Sized does not depend on any type or lifetime parameters |
| 16 | + --> $DIR/ice-3969.rs:31:10 |
16 | 17 | | |
17 | | - = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! |
18 | | - = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> |
| 18 | +LL | str: Sized, |
| 19 | + | ^^^^^ |
19 | 20 |
|
20 | | -error: trait objects without an explicit `dyn` are deprecated |
21 | | - --> $DIR/ice-3969.rs:27:57 |
| 21 | +error: trait bound std::string::String: std::ops::Neg does not depend on any type or lifetime parameters |
| 22 | + --> $DIR/ice-3969.rs:38:13 |
22 | 23 | | |
23 | | -LL | let x: Dst<A> = *(Box::new(Dst { x: 1 }) as Box<Dst<A>>); |
24 | | - | ^ help: use `dyn`: `dyn A` |
| 24 | +LL | String: ::std::ops::Neg<Output = String>, |
| 25 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| 26 | + |
| 27 | +error: trait bound i32: std::iter::Iterator does not depend on any type or lifetime parameters |
| 28 | + --> $DIR/ice-3969.rs:45:10 |
25 | 29 | | |
26 | | - = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! |
27 | | - = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> |
| 30 | +LL | i32: Iterator, |
| 31 | + | ^^^^^^^^ |
28 | 32 |
|
29 | | -error: aborting due to 3 previous errors |
| 33 | +error: aborting due to 5 previous errors |
30 | 34 |
|
0 commit comments