2024-02-26 06:22:24 +00:00
|
|
|
error[E0782]: trait objects must include the `dyn` keyword
|
|
|
|
--> $DIR/issue-111727.rs:4:5
|
|
|
|
|
|
|
|
|
LL | std::any::Any::create();
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
|
|
|
help: add `dyn` keyword before this trait
|
|
|
|
|
|
|
|
|
LL | <dyn std::any::Any>::create();
|
|
|
|
| ++++ +
|
|
|
|
|
2023-05-19 14:11:54 +00:00
|
|
|
error[E0599]: no function or associated item named `create` found for trait `Any`
|
|
|
|
--> $DIR/issue-111727.rs:4:20
|
|
|
|
|
|
|
|
|
LL | std::any::Any::create();
|
|
|
|
| ^^^^^^ function or associated item not found in `Any`
|
|
|
|
|
2024-02-26 06:22:24 +00:00
|
|
|
error: aborting due to 2 previous errors
|
2023-05-19 14:11:54 +00:00
|
|
|
|
2024-02-26 06:22:24 +00:00
|
|
|
Some errors have detailed explanations: E0599, E0782.
|
|
|
|
For more information about an error, try `rustc --explain E0599`.
|