Sign in
fuchsia
/
third_party
/
rust
/
cfcc5c296ed6fabcc8b9d380eaaea8a7352299fd
/
.
/
src
/
test
/
ui
/
unboxed-closures
/
unboxed-closures-simple.rs
blob: 1449554024ca10c0d8063ea105d9ce677fa91fa9 [
file
] [
log
] [
blame
]
// run-pass
#![
allow
(
unused_mut
)]
#![
allow
(
unused_imports
)]
use
std
::
ops
::
FnMut
;
pub
fn
main
()
{
let
mut
f
=
|
x
:
isize
,
y
:
isize
|
->
isize
{
x
+
y
};
let
z
=
f
(
1
,
2
);
assert_eq
!(
z
,
3
);
}