Commit 3b9e32e 1 parent 74cb327 commit 3b9e32e Copy full SHA for 3b9e32e
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ error: trait objects without an explicit `dyn` are deprecated
4
4
11 | impl Trait for Send + Sync {
5
5
| ^^^^^^^^^^^
6
6
|
7
+ = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
8
+ = note: for more information, see <https://doc.rust-lang.org/nightly/edition-guide/rust-2021/warnings-promoted-to-error.html>
7
9
note: the lint level is defined here
8
10
--> tests/ui/bare-trait-object.rs:1:9
9
11
|
10
12
1 | #![deny(bare_trait_objects)]
11
13
| ^^^^^^^^^^^^^^^^^^
12
- = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021!
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
16
11 | impl Trait for dyn Send + Sync {
You can’t perform that action at this time.
0 commit comments