summaryrefslogtreecommitdiffstats
path: root/tests/ui/coroutine/issue-110929-coroutine-conflict-error-ice.rs
blob: ad39b71b0eb0252d6b6c5d491c25c92ab0556dd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
// edition:2021
// check-pass
#![feature(coroutines)]

fn main() {
    let x = &mut ();
    || {
        let _c = || yield *&mut *x;
        || _ = &mut *x;
    };
}