diff options
| author | Aaron Hill <aa1ronham@gmail.com> | 2019-06-22 17:31:14 -0400 |
|---|---|---|
| committer | Aaron Hill <aa1ronham@gmail.com> | 2019-06-22 17:31:14 -0400 |
| commit | 93aa60b4bf50ec619f6f55bb5cd6d27ea280a573 (patch) | |
| tree | f168bdbcb082d1a354e5b42929dfce273434fefe /src/test | |
| parent | 8450289e65b07678dff32b67a18944170527c806 (diff) | |
| download | rust-93aa60b4bf50ec619f6f55bb5cd6d27ea280a573.tar.gz rust-93aa60b4bf50ec619f6f55bb5cd6d27ea280a573.zip | |
Move run-pass test to run-pass/generator
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/generator/addassign-yield.rs (renamed from src/test/run-pass/issues/issue-61442.rs) | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/run-pass/issues/issue-61442.rs b/src/test/run-pass/generator/addassign-yield.rs index 83b2c4b8189..6a417936384 100644 --- a/src/test/run-pass/issues/issue-61442.rs +++ b/src/test/run-pass/generator/addassign-yield.rs @@ -1,3 +1,9 @@ +// Regression test for broken MIR error (#61442) +// Due to the two possible evaluation orders for +// a '+=' expression (depending on whether or not the 'AddAssign' trait +// is being used), we were failing to account for all types that might +// possibly be live across a yield point. + #![feature(generators)] fn foo() { |
