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