mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-18 03:25:55 +00:00
ec25d6db53
This gives one extra error message on two tests, but is necessary to fix bigger problems caused by the cancellation of stashed errors. (Note: why not just avoid stashing altogether? Because that resulted in additional output changes.)
22 lines
668 B
Plaintext
22 lines
668 B
Plaintext
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();
|
|
| ++++ +
|
|
|
|
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`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
Some errors have detailed explanations: E0599, E0782.
|
|
For more information about an error, try `rustc --explain E0599`.
|