rust/tests/ui/typeck/issue-106929.rs

14 lines
204 B
Rust

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() {}