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 16:50:28 +00:00
// edition:2021
// check-pass
2023-10-19 21:46:28 +00:00
#![feature(coroutines)]
2023-04-28 16:50:28 +00:00
fn main() {
let x = &mut ();
|| {
let _c = || yield *&mut *x;
|| _ = &mut *x;
};
}