]>
Commit | Line | Data |
---|---|---|
17df50a5 | 1 | warning: trait objects without an explicit `dyn` are deprecated |
94222f64 | 2 | --> $DIR/lint-group-allowed-lint-group.rs:10:25 |
17df50a5 XL |
3 | | |
4 | LL | pub fn function(_x: Box<SomeTrait>) {} | |
a2a8927a | 5 | | ^^^^^^^^^ |
17df50a5 | 6 | | |
136023e0 XL |
7 | = note: `--force-warn bare-trait-objects` implied by `--force-warn rust-2018-idioms` |
8 | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! | |
94222f64 | 9 | = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> |
a2a8927a XL |
10 | help: use `dyn` |
11 | | | |
f2b60f7d FG |
12 | LL | pub fn function(_x: Box<dyn SomeTrait>) {} |
13 | | +++ | |
a2a8927a XL |
14 | |
15 | warning: trait objects without an explicit `dyn` are deprecated | |
16 | --> $DIR/lint-group-allowed-lint-group.rs:10:25 | |
17 | | | |
18 | LL | pub fn function(_x: Box<SomeTrait>) {} | |
19 | | ^^^^^^^^^ | |
20 | | | |
21 | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! | |
22 | = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> | |
23 | help: use `dyn` | |
24 | | | |
f2b60f7d FG |
25 | LL | pub fn function(_x: Box<dyn SomeTrait>) {} |
26 | | +++ | |
a2a8927a XL |
27 | |
28 | warning: trait objects without an explicit `dyn` are deprecated | |
29 | --> $DIR/lint-group-allowed-lint-group.rs:10:25 | |
30 | | | |
31 | LL | pub fn function(_x: Box<SomeTrait>) {} | |
32 | | ^^^^^^^^^ | |
33 | | | |
34 | = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! | |
35 | = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html> | |
36 | help: use `dyn` | |
37 | | | |
f2b60f7d FG |
38 | LL | pub fn function(_x: Box<dyn SomeTrait>) {} |
39 | | +++ | |
17df50a5 | 40 | |
a2a8927a | 41 | warning: 3 warnings emitted |
17df50a5 | 42 |