fixed failing tests

This commit is contained in:
Carl Fredrik Samson
2020-04-05 18:30:35 +02:00
parent 9b2401b8a4
commit 83c0872af2
7 changed files with 45 additions and 31 deletions

View File

@@ -746,7 +746,7 @@ impl Generator for GeneratorA {
// the `String` earlier since these references will point to the
// location in this stack frame which will not be valid anymore
// when this function returns.
if let GeneratorA::Yield1 {to_borrow, borrowed} = self {
if let GeneratorA::Yield1 {to_borrow, borrowed} = this {
*borrowed = to_borrow;
}