blob: 300c8fe6d4618078f03651095386937d3ab650b3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
//@ edition:2021
//@ check-pass
#![feature(coroutines, stmt_expr_attributes)]
fn main() {
let x = &mut ();
|| {
let _c = #[coroutine]
|| yield *&mut *x;
|| _ = &mut *x;
};
}
|