Skip to content

Commit 7a50392

Browse files
committedApr 29, 2021
Fix clippy error
1 parent 4193b0b commit 7a50392

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
 

‎src/tools/clippy/tests/ui/crashes/ice-3969.stderr

+8
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,26 @@ LL | for<'a> Dst<A + 'a>: Sized,
55
| ^^^^^^ help: use `dyn`: `dyn A + 'a`
66
|
77
= note: `-D bare-trait-objects` implied by `-D warnings`
8+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
9+
= note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
810

911
error: trait objects without an explicit `dyn` are deprecated
1012
--> $DIR/ice-3969.rs:27:16
1113
|
1214
LL | let x: Dst<A> = *(Box::new(Dst { x: 1 }) as Box<Dst<A>>);
1315
| ^ help: use `dyn`: `dyn A`
16+
|
17+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
18+
= note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
1419

1520
error: trait objects without an explicit `dyn` are deprecated
1621
--> $DIR/ice-3969.rs:27:57
1722
|
1823
LL | let x: Dst<A> = *(Box::new(Dst { x: 1 }) as Box<Dst<A>>);
1924
| ^ help: use `dyn`: `dyn A`
25+
|
26+
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in the 2021 edition!
27+
= note: for more information, see issue #80165 <https://github.com/rust-lang/rust/issues/80165>
2028

2129
error: aborting due to 3 previous errors
2230

0 commit comments

Comments
 (0)