diff options
| -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() { |
