12 lines
166 B
Rust
12 lines
166 B
Rust
// edition:2021
|
|
// check-pass
|
|
#![feature(coroutines)]
|
|
|
|
fn main() {
|
|
let x = &mut ();
|
|
|| {
|
|
let _c = || yield *&mut *x;
|
|
|| _ = &mut *x;
|
|
};
|
|
}
|