blob: 716781e365c5a1972cba11081ab2e598d1cc27d2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
//@ run-pass
#![feature(coroutines)]
fn _run(bar: &mut i32) {
#[coroutine] || { //~ WARN unused coroutine that must be used
{
let _baz = &*bar;
yield;
}
*bar = 2;
};
}
fn main() {}
|