summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-16939.rs
blob: ad7248343918d1a0b44ac6ef9d50a303212bbbbb (plain)
1
2
3
4
5
6
7
8
// Make sure we don't ICE when making an overloaded call with the
// wrong arity.

fn _foo<F: Fn()> (f: F) {
    |t| f(t); //~ ERROR E0057
}

fn main() {}