File tree 1 file changed +8
-0
lines changed
src/tools/clippy/tests/ui/crashes
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -5,18 +5,26 @@ LL | for<'a> Dst<A + 'a>: Sized,
5
5
| ^^^^^^ help: use `dyn`: `dyn A + 'a`
6
6
|
7
7
= 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>
8
10
9
11
error: trait objects without an explicit `dyn` are deprecated
10
12
--> $DIR/ice-3969.rs:27:16
11
13
|
12
14
LL | let x: Dst<A> = *(Box::new(Dst { x: 1 }) as Box<Dst<A>>);
13
15
| ^ 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>
14
19
15
20
error: trait objects without an explicit `dyn` are deprecated
16
21
--> $DIR/ice-3969.rs:27:57
17
22
|
18
23
LL | let x: Dst<A> = *(Box::new(Dst { x: 1 }) as Box<Dst<A>>);
19
24
| ^ 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>
20
28
21
29
error: aborting due to 3 previous errors
22
30
You can’t perform that action at this time.
0 commit comments