summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/issue-106929.rs
blob: 91342229ae1a53f4eed5ba5d31ef80d82457a8cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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() {}