Sign in
fuchsia
/
third_party
/
rust
/
346aec9b02f3c74f3fce97fd6bda24709d220e49
/
.
/
src
/
test
/
ui
/
functions-closures
/
closure_to_fn_coercion-expected-types.rs
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
())
}