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 06:57:01 +00:00
//~^ ERROR type parameter to bare `Fn` trait must be a tuple
fn main() {
a(|_: usize| {});
}