From 22ea3a4476e3b2ecef218524f132b57ea14c64de Mon Sep 17 00:00:00 2001 From: Mazdak Farrokhzad Date: Fri, 10 Apr 2020 18:22:24 +0200 Subject: [PATCH] --bless you --- .../ui/binding/issue-53114-borrow-checks.stderr | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/test/ui/binding/issue-53114-borrow-checks.stderr b/src/test/ui/binding/issue-53114-borrow-checks.stderr index f535a66cf63ba..2a7a721324d69 100644 --- a/src/test/ui/binding/issue-53114-borrow-checks.stderr +++ b/src/test/ui/binding/issue-53114-borrow-checks.stderr @@ -32,19 +32,19 @@ LL | match mm { (_, _) => { } } error[E0382]: use of moved value: `m` --> $DIR/issue-53114-borrow-checks.rs:36:16 | -34 | let m = M; +LL | let m = M; | - move occurs because `m` has type `M`, which does not implement the `Copy` trait -35 | drop(m); +LL | drop(m); | - value moved here -36 | if let _ = m { } // #53114: should eventually be accepted too +LL | if let _ = m { } // #53114: should eventually be accepted too | ^ value used here after move error[E0382]: use of moved value: `mm` --> $DIR/issue-53114-borrow-checks.rs:41:22 | -40 | if let (_x, _) = mm { } +LL | if let (_x, _) = mm { } | -- value moved here -41 | if let (_, _y) = mm { } +LL | if let (_, _y) = mm { } | ^^ value used here after partial move | = note: move occurs because `mm.0` has type `M`, which does not implement the `Copy` trait @@ -52,10 +52,10 @@ error[E0382]: use of moved value: `mm` error[E0382]: use of moved value: `mm` --> $DIR/issue-53114-borrow-checks.rs:43:21 | -41 | if let (_, _y) = mm { } +LL | if let (_, _y) = mm { } | -- value moved here -42 | -43 | if let (_, _) = mm { } +LL | +LL | if let (_, _) = mm { } | ^^ value used here after partial move | = note: move occurs because `mm.1` has type `M`, which does not implement the `Copy` trait