blob: 5a41fff11a1f0c2dba7cd70898aee21cdad30d21 [file] [log] [blame]
// run-pass
#![allow(path_statements)]
#![allow(dead_code)]
#![feature(nll)]
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() {}