]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-16939.rs
Merge commit 'd3a2366ee877075c59b38bd8ced55f224fc7ef51' into sync_cg_clif-2022-07-26
[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() {}