@@ -7,7 +7,7 @@ LL | let _: Dyn::Ty;
77 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
88 = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
99 = note: `#[warn(bare_trait_objects)]` on by default
10- help: use `dyn`
10+ help: if this is an object-safe trait, use `dyn`
1111 |
1212LL | let _: <dyn Dyn>::Ty;
1313 | ++++ +
@@ -26,7 +26,7 @@ LL | Dyn::func();
2626 |
2727 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
2828 = 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`
3030 |
3131LL | <dyn Dyn>::func();
3232 | ++++ +
@@ -39,7 +39,7 @@ LL | ::Dyn::func();
3939 |
4040 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
4141 = 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`
4343 |
4444LL | <dyn (::Dyn)>::func();
4545 | ++++++ ++
@@ -52,7 +52,7 @@ LL | Dyn::CONST;
5252 |
5353 = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
5454 = 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`
5656 |
5757LL | <dyn Dyn>::CONST;
5858 | ++++ +
0 commit comments