Sign in
fuchsia
/
third_party
/
rust
/
7de9402b77ded0d8ec9e1c554521b2121449ef2b
/
.
/
src
/
test
/
ui
/
functions-closures
/
call-closure-from-overloaded-op.rs
blob: 8e1c68fd77da079b84e0af621002b776ef3e16c3 [
file
] [
log
] [
blame
]
// run-pass
fn
foo
()
->
isize
{
22
}
pub
fn
main
()
{
let
mut
x
:
Vec
<
extern
"Rust"
fn
()
->
isize
>
=
Vec
::
new
();
x
.
push
(
foo
);
assert_eq
!((
x
[
0
])(),
22
);
}