rust/tests/ui/resolve/issue-111727.rs

8 lines
205 B
Rust

//@ edition: 2021
fn main() {
std::any::Any::create();
//~^ ERROR trait objects must include the `dyn` keyword
//~| ERROR no function or associated item named `create` found for trait `Any`
}