rust/tests/ui/suggestions/suggest-assoc-fn-call-with-turbofish-placeholder.rs

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

12 lines
221 B
Rust
Raw Normal View History

struct GenericAssocMethod<T>(T);
impl<T> GenericAssocMethod<T> {
fn default_hello() {}
}
fn main() {
let x = GenericAssocMethod(33);
x.default_hello();
//~^ ERROR no method named `default_hello` found
}