1 error[E0782]: trait objects must include the `dyn` keyword
2 --> $DIR/dyn-2021-edition-error.rs:6:14
4 LL | let _x: &SomeTrait = todo!();
7 help: add `dyn` keyword before this trait
9 LL | let _x: &dyn SomeTrait = todo!();
12 error[E0782]: trait objects must include the `dyn` keyword
13 --> $DIR/dyn-2021-edition-error.rs:3:17
15 LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
18 help: add `dyn` keyword before this trait
20 LL | fn function(x: &dyn SomeTrait, y: Box<SomeTrait>) {
23 error[E0782]: trait objects must include the `dyn` keyword
24 --> $DIR/dyn-2021-edition-error.rs:3:35
26 LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
29 help: add `dyn` keyword before this trait
31 LL | fn function(x: &SomeTrait, y: Box<dyn SomeTrait>) {
34 error: aborting due to 3 previous errors
36 For more information about this error, try `rustc --explain E0782`.