]> git.lizzy.rs Git - rust.git/blob - tests/ui/lint/force-warn/lint-group-allowed-lint-group.stderr
Rollup merge of #106709 - khuey:disable_split_dwarf_inlining_by_default, r=davidtwco
[rust.git] / tests / ui / lint / force-warn / lint-group-allowed-lint-group.stderr
1 warning: trait objects without an explicit `dyn` are deprecated
2   --> $DIR/lint-group-allowed-lint-group.rs:10:25
3    |
4 LL | pub fn function(_x: Box<SomeTrait>) {}
5    |                         ^^^^^^^^^
6    |
7    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
8    = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
9    = note: `--force-warn bare-trait-objects` implied by `--force-warn rust-2018-idioms`
10 help: use `dyn`
11    |
12 LL | pub fn function(_x: Box<dyn SomeTrait>) {}
13    |                         +++
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    |
25 LL | pub fn function(_x: Box<dyn SomeTrait>) {}
26    |                         +++
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    |
38 LL | pub fn function(_x: Box<dyn SomeTrait>) {}
39    |                         +++
40
41 warning: 3 warnings emitted
42