]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/suggest-assoc-fn-call-with-turbofish.rs
When suggesting assoc function with type params, include turbofish
[rust.git] / src / test / ui / suggestions / suggest-assoc-fn-call-with-turbofish.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(33i32);
9     x.default_hello();
10     //~^ ERROR no method named `default_hello` found for type `GenericAssocMethod<i32>`
11 }