Files
rust/tests/ui/dyn-keyword/misspelled-associated-item.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
278 B
Rust
Raw Normal View History

//@ edition: 2021
trait Trait {
fn typo() -> Self;
}
fn main() {
let () = Trait::typoe();
//~^ ERROR expected a type, found a trait
//~| HELP you can add the `dyn` keyword if you want a trait object
//~| HELP you may have misspelled this associated item
}