Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
unboxed-closures
/
unboxed-closures-static-call-wrong-trait.rs
blob: 0e727b11cd21e80eced74a258d4b3d654685b135 [
file
] [
log
] [
blame
]
#![
feature
(
unboxed_closures
)]
fn
to_fn_mut
<
A
,
F
:
FnMut
<
A
>>(
f
:
F
)
->
F
{
f
}
fn
main
()
{
let
mut_
=
to_fn_mut
(|
x
|
x
);
mut_
.
call
((
0
,
));
//~ ERROR no method named `call` found
}