Move run-pass test to run-pass/generator

This commit is contained in:
Aaron Hill 2019-06-22 17:31:14 -04:00
parent 8450289e65
commit 93aa60b4bf
No known key found for this signature in database
GPG Key ID: B4087E510E98B164

View File

@ -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() {