blob: e7a9383950ffd98e610fd044dfe27d1ca403ba2f [file] [log] [blame]
// run-pass
#![allow(unused_variables)]
// Ensure that we deduce expected argument types when a `fn()` type is expected (#41755)
fn foo(f: fn(Vec<u32>) -> usize) { }
fn main() {
foo(|x| x.len())
}