]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-16939.rs
Merge commit 'e9d1a0a7b0b28dd422f1a790ccde532acafbf193' into sync_cg_clif-2022-08-24
[rust.git] / src / test / ui / issues / issue-16939.rs
1 // Make sure we don't ICE when making an overloaded call with the
2 // wrong arity.
3
4 fn _foo<F: Fn()> (f: F) {
5     |t| f(t); //~ ERROR E0057
6 }
7
8 fn main() {}