]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lint/force-warn/lint-group-allowed-lint-group.stderr
New upstream version 1.65.0+dfsg1
[rustc.git] / src / test / ui / lint / force-warn / lint-group-allowed-lint-group.stderr
CommitLineData
17df50a5 1warning: trait objects without an explicit `dyn` are deprecated
94222f64 2 --> $DIR/lint-group-allowed-lint-group.rs:10:25
17df50a5
XL
3 |
4LL | 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
10help: use `dyn`
11 |
f2b60f7d
FG
12LL | pub fn function(_x: Box<dyn SomeTrait>) {}
13 | +++
a2a8927a
XL
14
15warning: trait objects without an explicit `dyn` are deprecated
16 --> $DIR/lint-group-allowed-lint-group.rs:10:25
17 |
18LL | 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>
23help: use `dyn`
24 |
f2b60f7d
FG
25LL | pub fn function(_x: Box<dyn SomeTrait>) {}
26 | +++
a2a8927a
XL
27
28warning: trait objects without an explicit `dyn` are deprecated
29 --> $DIR/lint-group-allowed-lint-group.rs:10:25
30 |
31LL | 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>
36help: use `dyn`
37 |
f2b60f7d
FG
38LL | pub fn function(_x: Box<dyn SomeTrait>) {}
39 | +++
17df50a5 40
a2a8927a 41warning: 3 warnings emitted
17df50a5 42