File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 1
- error: trait objects without an explicit `dyn` are deprecated
1
+ error[E0782] : trait objects must include the `dyn` keyword
2
2
--> tests/ui/bare-trait-object.rs:11:16
3
3
|
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>
9
- note: the lint level is defined here
10
- --> tests/ui/bare-trait-object.rs:1:9
11
- |
12
- 1 | #![deny(bare_trait_objects)]
13
- | ^^^^^^^^^^^^^^^^^^
14
- help: use `dyn`
7
+ help: add `dyn` keyword before this trait
15
8
|
16
9
11 | impl Trait for dyn Send + Sync {
17
10
| +++
You can’t perform that action at this time.
0 commit comments