2024-10-04 16:10:28 +02:00
|
|
|
error[E0782]: expected a type, found a trait
|
2024-02-26 17:22:24 +11:00
|
|
|
--> $DIR/issue-111727.rs:4:5
|
|
|
|
|
|
|
|
|
LL | std::any::Any::create();
|
|
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
|
2024-10-04 16:10:28 +02:00
|
|
|
help: you can add the `dyn` keyword if you want a trait object
|
2024-02-26 17:22:24 +11:00
|
|
|
|
|
|
|
|
LL | <dyn std::any::Any>::create();
|
|
|
|
| ++++ +
|
|
|
|
|
2024-10-04 16:10:28 +02:00
|
|
|
error: aborting due to 1 previous error
|
2023-05-19 22:11:54 +08:00
|
|
|
|
2024-10-04 16:10:28 +02:00
|
|
|
For more information about this error, try `rustc --explain E0782`.
|