Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
functions-closures
/
call-closure-from-overloaded-op.rs
blob: bf8ae119142dfdbf2cb15e4be594c9b1ff60303f [
file
] [
log
] [
blame
] [
edit
]
//@ 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
);
}