]> git.proxmox.com Git - rustc.git/blame - src/test/ui/dyn-keyword/dyn-2018-edition-lint.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / dyn-keyword / dyn-2018-edition-lint.stderr
CommitLineData
17df50a5
XL
1error: trait objects without an explicit `dyn` are deprecated
2 --> $DIR/dyn-2018-edition-lint.rs:4:17
3 |
4LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
a2a8927a 5 | ^^^^^^^^^
17df50a5
XL
6 |
7note: the lint level is defined here
8 --> $DIR/dyn-2018-edition-lint.rs:2:8
9 |
10LL | #[deny(bare_trait_objects)]
11 | ^^^^^^^^^^^^^^^^^^
136023e0 12 = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
94222f64 13 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
a2a8927a
XL
14help: use `dyn`
15 |
16LL - fn function(x: &SomeTrait, y: Box<SomeTrait>) {
17LL + fn function(x: &dyn SomeTrait, y: Box<SomeTrait>) {
923072b8 18 |
17df50a5
XL
19
20error: trait objects without an explicit `dyn` are deprecated
21 --> $DIR/dyn-2018-edition-lint.rs:4:35
22 |
23LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
a2a8927a 24 | ^^^^^^^^^
17df50a5 25 |
136023e0 26 = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
94222f64 27 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
a2a8927a
XL
28help: use `dyn`
29 |
30LL - fn function(x: &SomeTrait, y: Box<SomeTrait>) {
31LL + fn function(x: &SomeTrait, y: Box<dyn SomeTrait>) {
923072b8 32 |
17df50a5
XL
33
34error: trait objects without an explicit `dyn` are deprecated
a2a8927a 35 --> $DIR/dyn-2018-edition-lint.rs:17:14
17df50a5
XL
36 |
37LL | let _x: &SomeTrait = todo!();
a2a8927a
XL
38 | ^^^^^^^^^
39 |
40 = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
41 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
42help: use `dyn`
43 |
44LL - let _x: &SomeTrait = todo!();
45LL + let _x: &dyn SomeTrait = todo!();
923072b8 46 |
a2a8927a
XL
47
48error: trait objects without an explicit `dyn` are deprecated
49 --> $DIR/dyn-2018-edition-lint.rs:4:17
50 |
51LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
52 | ^^^^^^^^^
53 |
54 = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
55 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
56help: use `dyn`
57 |
58LL - fn function(x: &SomeTrait, y: Box<SomeTrait>) {
59LL + fn function(x: &dyn SomeTrait, y: Box<SomeTrait>) {
923072b8 60 |
a2a8927a
XL
61
62error: trait objects without an explicit `dyn` are deprecated
63 --> $DIR/dyn-2018-edition-lint.rs:4:17
64 |
65LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
66 | ^^^^^^^^^
17df50a5 67 |
136023e0 68 = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
94222f64 69 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
a2a8927a
XL
70help: use `dyn`
71 |
72LL - fn function(x: &SomeTrait, y: Box<SomeTrait>) {
73LL + fn function(x: &dyn SomeTrait, y: Box<SomeTrait>) {
923072b8 74 |
a2a8927a
XL
75
76error: trait objects without an explicit `dyn` are deprecated
77 --> $DIR/dyn-2018-edition-lint.rs:4:35
78 |
79LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
80 | ^^^^^^^^^
81 |
82 = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
83 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
84help: use `dyn`
85 |
86LL - fn function(x: &SomeTrait, y: Box<SomeTrait>) {
87LL + fn function(x: &SomeTrait, y: Box<dyn SomeTrait>) {
923072b8 88 |
a2a8927a
XL
89
90error: trait objects without an explicit `dyn` are deprecated
91 --> $DIR/dyn-2018-edition-lint.rs:4:35
92 |
93LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
94 | ^^^^^^^^^
95 |
96 = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
97 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
98help: use `dyn`
99 |
100LL - fn function(x: &SomeTrait, y: Box<SomeTrait>) {
101LL + fn function(x: &SomeTrait, y: Box<dyn SomeTrait>) {
923072b8 102 |
17df50a5 103
a2a8927a 104error: aborting due to 7 previous errors
17df50a5 105