Sign in
fuchsia
/
third_party
/
rust
/
12307b3b08edee543a78fb9d4a837fbd6d6ac0fa
/
.
/
src
/
test
/
ui
/
nll
/
issue-48623-closure.rs
blob: 3f8587eed41b99aaaccd78a36353f45c2946c914 [
file
] [
log
] [
blame
]
// 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
()
{}