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