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