@@ -13,9 +13,8 @@ LL | #[deny(bare_trait_objects)]
1313 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
1414help: use `dyn`
1515 |
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+ | +++
1918
2019error: trait objects without an explicit `dyn` are deprecated
2120 --> $DIR/dyn-2018-edition-lint.rs:4:35
@@ -27,9 +26,8 @@ LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
2726 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
2827help: use `dyn`
2928 |
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+ | +++
3331
3432error: trait objects without an explicit `dyn` are deprecated
3533 --> $DIR/dyn-2018-edition-lint.rs:17:14
@@ -41,9 +39,8 @@ LL | let _x: &SomeTrait = todo!();
4139 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
4240help: use `dyn`
4341 |
44- LL - let _x: &SomeTrait = todo!();
45- LL + let _x: &dyn SomeTrait = todo!();
46- |
42+ LL | let _x: &dyn SomeTrait = todo!();
43+ | +++
4744
4845error: trait objects without an explicit `dyn` are deprecated
4946 --> $DIR/dyn-2018-edition-lint.rs:4:17
@@ -55,9 +52,8 @@ LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
5552 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
5653help: use `dyn`
5754 |
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+ | +++
6157
6258error: trait objects without an explicit `dyn` are deprecated
6359 --> $DIR/dyn-2018-edition-lint.rs:4:17
@@ -69,9 +65,8 @@ LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
6965 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
7066help: use `dyn`
7167 |
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+ | +++
7570
7671error: trait objects without an explicit `dyn` are deprecated
7772 --> $DIR/dyn-2018-edition-lint.rs:4:35
@@ -83,9 +78,8 @@ LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
8378 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
8479help: use `dyn`
8580 |
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+ | +++
8983
9084error: trait objects without an explicit `dyn` are deprecated
9185 --> $DIR/dyn-2018-edition-lint.rs:4:35
@@ -97,9 +91,8 @@ LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
9791 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
9892help: use `dyn`
9993 |
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+ | +++
10396
10497error: aborting due to 7 previous errors
10598
0 commit comments