rust/tests/ui/coroutine/issue-110929-coroutine-conflict-error-ice.rs
2024-02-16 20:02:50 +00:00

12 lines
168 B
Rust

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