blob: e7a9383950ffd98e610fd044dfe27d1ca403ba2f (
plain)
1
2
3
4
5
6
7
8
9
|
// 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())
}
|