Sign in
fuchsia
/
third_party
/
rust
/
9d09331e00b02f81c714b0c41ce3a38380dd36a2
/
.
/
src
/
test
/
ui
/
unboxed-closures
/
unboxed-closures-type-mismatch.rs
blob: 9f76849e5fbffddafc646570d50e76222edb3b17 [
file
] [
log
] [
blame
]
use
std
::
ops
::
FnMut
;
pub
fn
main
()
{
let
mut
f
=
|
x
:
isize
,
y
:
isize
|
->
isize
{
x
+
y
};
let
z
=
f
(
1
_usize
,
2
);
//~ ERROR mismatched types
println
!(
"{}"
,
z
);
}