Skip to content

Commit b29b56f

Browse files
committed
Add regression test for issue 110929
1 parent 43a7802 commit b29b56f

File tree

2 files changed

+327
-0
lines changed

2 files changed

+327
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// edition:2021
2+
// compile-flags: -Zdrop-tracking-mir=yes
3+
// failure-status: 101
4+
#![feature(generators)]
5+
6+
fn main() {
7+
let x = &mut ();
8+
|| {
9+
let _c = || yield *&mut *x;
10+
|| _ = &mut *x;
11+
};
12+
}

0 commit comments

Comments
 (0)