rust/tests/ui/unboxed-closures/non-tupled-arg-mismatch.rs

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

9 lines
157 B
Rust
Raw Normal View History

#![feature(unboxed_closures)]
fn a<F: Fn<usize>>(f: F) {}
2022-10-02 01:57:01 -05:00
//~^ ERROR type parameter to bare `Fn` trait must be a tuple
fn main() {
a(|_: usize| {});
}