-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add regression test for issue 110929
- Loading branch information
1 parent
43a7802
commit b29b56f
Showing
2 changed files
with
327 additions
and
0 deletions.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
tests/ui/generator/issue-110929-generator-conflict-error-ice.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; | ||
} |
Oops, something went wrong.