Sign in
rust
/
rust-lang
/
rust
/
refs/heads/stable
/
.
/
tests
/
ui
/
moves
/
move-nullary-fn.rs
blob: 0480d2b10454ebcb00a8c83ada1d8da747e28afd [
file
] [
log
] [
blame
]
//@ run-pass
// Issue #922
fn
f2
<
F
>(
_thing
:
F
)
where F
:
FnOnce
()
{
}
fn
f
<
F
>(
thing
:
F
)
where F
:
FnOnce
()
{
f2
(
thing
);
}
pub
fn
main
()
{
f
(||
{});
}