blob: 3595d449823e38758c6924c0ba9a038c5b2eeee6 [file] [log] [blame]
// run-pass
#![allow(dead_code)]
#![allow(dead_code)]
#![feature(coroutines)]
fn bar<'a>() {
let a: &'static str = "hi";
let b: &'a str = a;
|| { //~ WARN unused coroutine that must be used
yield a;
yield b;
};
}
fn main() {}