rust/tests/ui/issues/issue-16939.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
155 B
Rust
Raw Normal View History

2014-10-17 02:08:42 +00:00
// 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
2014-10-17 02:08:42 +00:00
}
fn main() {}