Skip to content

Commit

Permalink
Add regression test for issue 110929
Browse files Browse the repository at this point in the history
  • Loading branch information
WaffleLapkin committed Apr 28, 2023
1 parent 43a7802 commit b29b56f
Show file tree
Hide file tree
Showing 2 changed files with 327 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/ui/generator/issue-110929-generator-conflict-error-ice.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// edition:2021
// compile-flags: -Zdrop-tracking-mir=yes
// failure-status: 101
#![feature(generators)]

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

0 comments on commit b29b56f

Please sign in to comment.