@@ -7,7 +7,7 @@ LL | let _: Dyn::Ty;
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 | let _: <dyn Dyn>::Ty;
13
13
| ++++ +
@@ -26,7 +26,7 @@ LL | Dyn::func();
26
26
|
27
27
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
28
28
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
29
- help: use `dyn`
29
+ help: if this is an object-safe trait, use `dyn`
30
30
|
31
31
LL | <dyn Dyn>::func();
32
32
| ++++ +
@@ -39,7 +39,7 @@ LL | ::Dyn::func();
39
39
|
40
40
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
41
41
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
42
- help: use `dyn`
42
+ help: if this is an object-safe trait, use `dyn`
43
43
|
44
44
LL | <dyn (::Dyn)>::func();
45
45
| ++++++ ++
@@ -52,7 +52,7 @@ LL | Dyn::CONST;
52
52
|
53
53
= warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
54
54
= note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
55
- help: use `dyn`
55
+ help: if this is an object-safe trait, use `dyn`
56
56
|
57
57
LL | <dyn Dyn>::CONST;
58
58
| ++++ +
0 commit comments