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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
166 B
Rust
Raw Normal View History

2023-04-28 11:50:28 -05:00
// edition:2021
// check-pass
2023-10-19 16:46:28 -05:00
#![feature(coroutines)]
2023-04-28 11:50:28 -05:00
fn main() {
let x = &mut ();
|| {
let _c = || yield *&mut *x;
|| _ = &mut *x;
};
}