2024-10-04 09:10:28 -05:00
|
|
|
error[E0782]: expected a type, found a trait
|
2021-09-04 20:29:03 -05:00
|
|
|
--> $DIR/dyn-trait-sugg-2021.rs:10:5
|
|
|
|
|
|
|
|
|
LL | Foo::hi(123);
|
2021-07-10 03:00:54 -05:00
|
|
|
| ^^^
|
|
|
|
|
|
2024-10-04 09:10:28 -05:00
|
|
|
help: you can add the `dyn` keyword if you want a trait object
|
2021-07-10 03:00:54 -05:00
|
|
|
|
|
|
|
|
LL | <dyn Foo>::hi(123);
|
2021-11-01 04:01:42 -05:00
|
|
|
| ++++ +
|
2021-09-04 20:29:03 -05:00
|
|
|
|
2023-11-21 09:44:16 -06:00
|
|
|
error: aborting due to 1 previous error
|
2021-09-04 20:29:03 -05:00
|
|
|
|
2021-11-10 11:49:30 -06:00
|
|
|
For more information about this error, try `rustc --explain E0782`.
|