Skip to content

Commit 93aa60b

Browse files
committed
Move run-pass test to run-pass/generator
1 parent 8450289 commit 93aa60b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Diff for: src/test/run-pass/issues/issue-61442.rs renamed to src/test/run-pass/generator/addassign-yield.rs

+6
Original file line numberDiff line numberDiff line change
@@ -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+
17
#![feature(generators)]
28

39
fn foo() {

0 commit comments

Comments
 (0)