]> git.proxmox.com Git - rustc.git/blob - tests/ui/lint/force-warn/cap-lints-allow.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui / lint / force-warn / cap-lints-allow.stderr
1 warning: trait objects without an explicit `dyn` are deprecated
2 --> $DIR/cap-lints-allow.rs:8: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: requested on the command line with `--force-warn bare-trait-objects`
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/cap-lints-allow.rs:8: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/cap-lints-allow.rs:8: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