Sign in
android
/
toolchain
/
rustc
/
refs/heads/main
/
.
/
tests
/
ui
/
nll
/
issue-48623-closure.rs
blob: e781cfb13921c4eb4d83e741cb80b86a00b90c30 [
file
] [
log
] [
blame
] [
edit
]
//@ run-pass
#![
allow
(
path_statements
)]
#![
allow
(
dead_code
)]
struct
WithDrop
;
impl
Drop
for
WithDrop
{
fn
drop
(&
mut
self
)
{}
}
fn
reborrow_from_closure
(
r
:
&
mut
())
->
&
mut
()
{
let
d
=
WithDrop
;
(
move
||
{
d
;
&
mut
*
r
})()
}
fn
main
()
{}