blob: 57f579106b7a987ac8267d7323e606eae4383b01 [file]
//@ run-pass
#![allow(path_statements)]
#![allow(dead_code)]
#![feature(coroutines)]
struct WithDrop;
impl Drop for WithDrop {
fn drop(&mut self) {}
}
fn reborrow_from_coroutine(r: &mut ()) {
let d = WithDrop;
#[coroutine] move || { d; yield; &mut *r }; //~ WARN unused coroutine that must be used
}
fn main() {}