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