]> git.lizzy.rs Git - rust.git/blob - src/test/ui/unboxed-closures/non-tupled-arg-mismatch.rs
Auto merge of #103600 - compiler-errors:early-binder-nits, r=spastorino
[rust.git] / src / test / ui / unboxed-closures / non-tupled-arg-mismatch.rs
1 #![feature(unboxed_closures)]
2
3 fn a<F: Fn<usize>>(f: F) {}
4 //~^ ERROR type parameter to bare `Fn` trait must be a tuple
5
6 fn main() {
7     a(|_: usize| {});
8 }