We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8450289 commit 93aa60bCopy full SHA for 93aa60b
src/test/run-pass/issues/issue-61442.rs renamed to src/test/run-pass/generator/addassign-yield.rs
@@ -1,3 +1,9 @@
1
+// Regression test for broken MIR error (#61442)
2
+// Due to the two possible evaluation orders for
3
+// a '+=' expression (depending on whether or not the 'AddAssign' trait
4
+// is being used), we were failing to account for all types that might
5
+// possibly be live across a yield point.
6
+
7
#![feature(generators)]
8
9
fn foo() {
0 commit comments