]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/suggest-assoc-fn-call-with-turbofish-placeholder.rs
Account for method call and indexing when looking for inner-most path in expression
[rust.git] / tests / ui / suggestions / suggest-assoc-fn-call-with-turbofish-placeholder.rs
1 struct GenericAssocMethod<T>(T);
2
3 impl<T> GenericAssocMethod<T> {
4     fn default_hello() {}
5 }
6
7 fn main() {
8     let x = GenericAssocMethod(33);
9     x.default_hello();
10     //~^ ERROR no method named `default_hello` found
11 }