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.

13 lines
211 B
Rust
Raw Normal View History

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