]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-16939.rs
Auto merge of #57108 - Mark-Simulacrum:license-remove, r=pietroalbini
[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() {}