summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/issue-101421.rs
blob: 1407ebd277cb685f8b7ecba43ee91824e88f564e (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 method takes 0 generic arguments but 1 generic argument was supplied
}