2021-03-16 15:47:06 -05:00
|
|
|
error[E0782]: trait objects must include the `dyn` keyword
|
|
|
|
--> $DIR/dyn-2021-edition-error.rs:3:17
|
|
|
|
|
|
|
|
|
LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
|
2021-03-19 04:18:22 -05:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: add `dyn` keyword before this trait
|
|
|
|
|
|
2022-09-11 14:19:07 -05:00
|
|
|
LL | fn function(x: &dyn SomeTrait, y: Box<SomeTrait>) {
|
|
|
|
| +++
|
2021-03-16 15:47:06 -05:00
|
|
|
|
|
|
|
error[E0782]: trait objects must include the `dyn` keyword
|
|
|
|
--> $DIR/dyn-2021-edition-error.rs:3:35
|
|
|
|
|
|
|
|
|
LL | fn function(x: &SomeTrait, y: Box<SomeTrait>) {
|
2021-03-19 04:18:22 -05:00
|
|
|
| ^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: add `dyn` keyword before this trait
|
|
|
|
|
|
2022-09-11 14:19:07 -05:00
|
|
|
LL | fn function(x: &SomeTrait, y: Box<dyn SomeTrait>) {
|
|
|
|
| +++
|
2021-03-16 15:47:06 -05:00
|
|
|
|
2021-07-10 03:00:54 -05:00
|
|
|
error: aborting due to 2 previous errors
|
2021-03-16 15:47:06 -05:00
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0782`.
|