2022-07-30 09:41:19 +00:00
|
|
|
#![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
|
2022-07-30 09:41:19 +00:00
|
|
|
|
|
|
|
fn main() {
|
2024-02-09 12:17:55 +00:00
|
|
|
a(|_: usize| {}); //~ ERROR: mismatched types
|
2022-07-30 09:41:19 +00:00
|
|
|
}
|