@@ -7,7 +7,7 @@ LL | trait B { fn f(a: A) -> A; }
7
7
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
8
8
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
9
9
= note: `#[warn(bare_trait_objects)]` on by default
10
- help: use `dyn`
10
+ help: if this is an object-safe trait, use `dyn`
11
11
|
12
12
LL | trait B { fn f(a: dyn A) -> A; }
13
13
| +++
@@ -20,7 +20,7 @@ LL | trait B { fn f(a: A) -> A; }
20
20
|
21
21
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
22
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`
23
+ help: if this is an object-safe trait, use `dyn`
24
24
|
25
25
LL | trait B { fn f(a: A) -> dyn A; }
26
26
| +++
@@ -33,7 +33,7 @@ LL | trait A { fn g(b: B) -> B; }
33
33
|
34
34
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
35
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`
36
+ help: if this is an object-safe trait, use `dyn`
37
37
|
38
38
LL | trait A { fn g(b: dyn B) -> B; }
39
39
| +++
@@ -46,7 +46,7 @@ LL | trait A { fn g(b: B) -> B; }
46
46
|
47
47
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
48
48
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
49
- help: use `dyn`
49
+ help: if this is an object-safe trait, use `dyn`
50
50
|
51
51
LL | trait A { fn g(b: B) -> dyn B; }
52
52
| +++
@@ -60,7 +60,7 @@ LL | trait B { fn f(a: A) -> A; }
60
60
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
61
61
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
62
62
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
63
- help: use `dyn`
63
+ help: if this is an object-safe trait, use `dyn`
64
64
|
65
65
LL | trait B { fn f(a: dyn A) -> A; }
66
66
| +++
@@ -96,7 +96,7 @@ LL | trait A { fn g(b: B) -> B; }
96
96
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
97
97
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
98
98
= note: duplicate diagnostic emitted due to `-Z deduplicate-diagnostics=no`
99
- help: use `dyn`
99
+ help: if this is an object-safe trait, use `dyn`
100
100
|
101
101
LL | trait A { fn g(b: dyn B) -> B; }
102
102
| +++
0 commit comments