@@ -13,9 +13,8 @@ LL | #[deny(bare_trait_objects)]
13
13
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
14
14
help: use `dyn`
15
15
|
16
- LL - fn function(x: &SomeTrait, y: Box<SomeTrait>) {
17
- LL + fn function(x: &dyn SomeTrait, y: Box<SomeTrait>) {
18
- |
16
+ LL | fn function(x: &dyn SomeTrait, y: Box<SomeTrait>) {
17
+ | +++
19
18
20
19
error: trait objects without an explicit `dyn` are deprecated
21
20
--> $DIR/dyn-2018-edition-lint.rs:4:35
@@ -27,9 +26,8 @@ LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
27
26
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
28
27
help: use `dyn`
29
28
|
30
- LL - fn function(x: &SomeTrait, y: Box<SomeTrait>) {
31
- LL + fn function(x: &SomeTrait, y: Box<dyn SomeTrait>) {
32
- |
29
+ LL | fn function(x: &SomeTrait, y: Box<dyn SomeTrait>) {
30
+ | +++
33
31
34
32
error: trait objects without an explicit `dyn` are deprecated
35
33
--> $DIR/dyn-2018-edition-lint.rs:17:14
@@ -41,9 +39,8 @@ LL | let _x: &SomeTrait = todo!();
41
39
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
42
40
help: use `dyn`
43
41
|
44
- LL - let _x: &SomeTrait = todo!();
45
- LL + let _x: &dyn SomeTrait = todo!();
46
- |
42
+ LL | let _x: &dyn SomeTrait = todo!();
43
+ | +++
47
44
48
45
error: trait objects without an explicit `dyn` are deprecated
49
46
--> $DIR/dyn-2018-edition-lint.rs:4:17
@@ -55,9 +52,8 @@ LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
55
52
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
56
53
help: use `dyn`
57
54
|
58
- LL - fn function(x: &SomeTrait, y: Box<SomeTrait>) {
59
- LL + fn function(x: &dyn SomeTrait, y: Box<SomeTrait>) {
60
- |
55
+ LL | fn function(x: &dyn SomeTrait, y: Box<SomeTrait>) {
56
+ | +++
61
57
62
58
error: trait objects without an explicit `dyn` are deprecated
63
59
--> $DIR/dyn-2018-edition-lint.rs:4:17
@@ -69,9 +65,8 @@ LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
69
65
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
70
66
help: use `dyn`
71
67
|
72
- LL - fn function(x: &SomeTrait, y: Box<SomeTrait>) {
73
- LL + fn function(x: &dyn SomeTrait, y: Box<SomeTrait>) {
74
- |
68
+ LL | fn function(x: &dyn SomeTrait, y: Box<SomeTrait>) {
69
+ | +++
75
70
76
71
error: trait objects without an explicit `dyn` are deprecated
77
72
--> $DIR/dyn-2018-edition-lint.rs:4:35
@@ -83,9 +78,8 @@ LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
83
78
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
84
79
help: use `dyn`
85
80
|
86
- LL - fn function(x: &SomeTrait, y: Box<SomeTrait>) {
87
- LL + fn function(x: &SomeTrait, y: Box<dyn SomeTrait>) {
88
- |
81
+ LL | fn function(x: &SomeTrait, y: Box<dyn SomeTrait>) {
82
+ | +++
89
83
90
84
error: trait objects without an explicit `dyn` are deprecated
91
85
--> $DIR/dyn-2018-edition-lint.rs:4:35
@@ -97,9 +91,8 @@ LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
97
91
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
98
92
help: use `dyn`
99
93
|
100
- LL - fn function(x: &SomeTrait, y: Box<SomeTrait>) {
101
- LL + fn function(x: &SomeTrait, y: Box<dyn SomeTrait>) {
102
- |
94
+ LL | fn function(x: &SomeTrait, y: Box<dyn SomeTrait>) {
95
+ | +++
103
96
104
97
error: aborting due to 7 previous errors
105
98
0 commit comments