blob: 91342229ae1a53f4eed5ba5d31ef80d82457a8cf [file] [log] [blame]
struct Client;
impl Client {
fn post<T: std::ops::Add>(&self, _: T, _: T) {}
}
fn f() {
let c = Client;
post(c, ());
//~^ ERROR cannot find function `post` in this scope
}
fn main() {}