struct Client; impl Client { fn post(&self, _: T, _: T) {} } fn f() { let c = Client; post(c, ()); //~^ ERROR cannot find function `post` in this scope } fn main() {}