blob: 8319e797d6214da58f3a71bb55ea30aac7584f52 [file] [log] [blame]
//@ 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
}