summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-101421.rs
blob: b615997d1a9a74ef94b47aa9fcc32cd5728ce5e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
pub trait Ice {
    fn f(&self, _: ());
}

impl Ice for () {
    fn f(&self, _: ()) {}
}

fn main() {
    ().f::<()>(());
    //~^ ERROR this associated function takes 0 generic arguments but 1 generic argument was supplied
}