rust/tests/ui/coroutine/issue-110929-coroutine-conflict-error-ice.rs

12 lines
166 B
Rust

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