From f4229b81b5b8f66299615976f0381592d20427af Mon Sep 17 00:00:00 2001 From: ashtneoi Date: Wed, 15 Aug 2018 15:25:53 -0700 Subject: [PATCH] Re-bless test --- .../dont-suggest-ref-in-closure.stderr | 63 +++++++++++++++++++ 1 file changed, 63 insertions(+) diff --git a/src/test/ui/suggestions/dont-suggest-ref-in-closure.stderr b/src/test/ui/suggestions/dont-suggest-ref-in-closure.stderr index d90773786e5..825676b5fdf 100644 --- a/src/test/ui/suggestions/dont-suggest-ref-in-closure.stderr +++ b/src/test/ui/suggestions/dont-suggest-ref-in-closure.stderr @@ -1,6 +1,9 @@ error[E0507]: cannot move out of captured variable in an `Fn` closure --> $DIR/dont-suggest-ref-in-closure.rs:40:21 | +LL | let x = X(Y); + | - captured outer variable +... LL | let X(_t) = x; | -- ^ | | | @@ -17,6 +20,9 @@ LL | let X(_t) = x; error[E0507]: cannot move out of captured variable in an `Fn` closure --> $DIR/dont-suggest-ref-in-closure.rs:44:34 | +LL | let e = Either::One(X(Y)); + | - captured outer variable +... LL | if let Either::One(_t) = e { } | -- ^ | | | @@ -33,6 +39,9 @@ LL | if let Either::One(_t) = e { } error[E0507]: cannot move out of captured variable in an `Fn` closure --> $DIR/dont-suggest-ref-in-closure.rs:48:37 | +LL | let e = Either::One(X(Y)); + | - captured outer variable +... LL | while let Either::One(_t) = e { } | -- ^ | | | @@ -49,6 +58,9 @@ LL | while let Either::One(_t) = e { } error[E0507]: cannot move out of captured variable in an `Fn` closure --> $DIR/dont-suggest-ref-in-closure.rs:52:15 | +LL | let e = Either::One(X(Y)); + | - captured outer variable +... LL | match e { | ^ | | @@ -67,6 +79,9 @@ LL | Either::One(_t) error[E0507]: cannot move out of captured variable in an `Fn` closure --> $DIR/dont-suggest-ref-in-closure.rs:59:15 | +LL | let e = Either::One(X(Y)); + | - captured outer variable +... LL | match e { | ^ | | @@ -85,6 +100,9 @@ LL | Either::One(_t) => (), error[E0507]: cannot move out of captured variable in an `Fn` closure --> $DIR/dont-suggest-ref-in-closure.rs:68:25 | +LL | let x = X(Y); + | - captured outer variable +... LL | let X(mut _t) = x; | ------ ^ | | | @@ -101,6 +119,9 @@ LL | let X(mut _t) = x; error[E0507]: cannot move out of captured variable in an `Fn` closure --> $DIR/dont-suggest-ref-in-closure.rs:72:38 | +LL | let mut em = Either::One(X(Y)); + | ------ captured outer variable +... LL | if let Either::One(mut _t) = em { } | ------ ^^ | | | @@ -117,6 +138,9 @@ LL | if let Either::One(mut _t) = em { } error[E0507]: cannot move out of captured variable in an `Fn` closure --> $DIR/dont-suggest-ref-in-closure.rs:76:41 | +LL | let mut em = Either::One(X(Y)); + | ------ captured outer variable +... LL | while let Either::One(mut _t) = em { } | ------ ^^ | | | @@ -133,6 +157,9 @@ LL | while let Either::One(mut _t) = em { } error[E0507]: cannot move out of captured variable in an `Fn` closure --> $DIR/dont-suggest-ref-in-closure.rs:80:15 | +LL | let mut em = Either::One(X(Y)); + | ------ captured outer variable +... LL | match em { | ^^ | | @@ -151,6 +178,9 @@ LL | Either::One(mut _t) error[E0507]: cannot move out of captured variable in an `Fn` closure --> $DIR/dont-suggest-ref-in-closure.rs:87:15 | +LL | let mut em = Either::One(X(Y)); + | ------ captured outer variable +... LL | match em { | ^^ | | @@ -169,6 +199,9 @@ LL | Either::One(mut _t) => (), error[E0507]: cannot move out of captured variable in an `FnMut` closure --> $DIR/dont-suggest-ref-in-closure.rs:107:21 | +LL | let x = X(Y); + | - captured outer variable +... LL | let X(_t) = x; | -- ^ | | | @@ -185,6 +218,9 @@ LL | let X(_t) = x; error[E0507]: cannot move out of captured variable in an `FnMut` closure --> $DIR/dont-suggest-ref-in-closure.rs:111:34 | +LL | let e = Either::One(X(Y)); + | - captured outer variable +... LL | if let Either::One(_t) = e { } | -- ^ | | | @@ -201,6 +237,9 @@ LL | if let Either::One(_t) = e { } error[E0507]: cannot move out of captured variable in an `FnMut` closure --> $DIR/dont-suggest-ref-in-closure.rs:115:37 | +LL | let e = Either::One(X(Y)); + | - captured outer variable +... LL | while let Either::One(_t) = e { } | -- ^ | | | @@ -217,6 +256,9 @@ LL | while let Either::One(_t) = e { } error[E0507]: cannot move out of captured variable in an `FnMut` closure --> $DIR/dont-suggest-ref-in-closure.rs:119:15 | +LL | let e = Either::One(X(Y)); + | - captured outer variable +... LL | match e { | ^ | | @@ -235,6 +277,9 @@ LL | Either::One(_t) error[E0507]: cannot move out of captured variable in an `FnMut` closure --> $DIR/dont-suggest-ref-in-closure.rs:126:15 | +LL | let e = Either::One(X(Y)); + | - captured outer variable +... LL | match e { | ^ | | @@ -253,6 +298,9 @@ LL | Either::One(_t) => (), error[E0507]: cannot move out of captured variable in an `FnMut` closure --> $DIR/dont-suggest-ref-in-closure.rs:135:25 | +LL | let x = X(Y); + | - captured outer variable +... LL | let X(mut _t) = x; | ------ ^ | | | @@ -269,6 +317,9 @@ LL | let X(mut _t) = x; error[E0507]: cannot move out of captured variable in an `FnMut` closure --> $DIR/dont-suggest-ref-in-closure.rs:139:38 | +LL | let mut em = Either::One(X(Y)); + | ------ captured outer variable +... LL | if let Either::One(mut _t) = em { } | ------ ^^ | | | @@ -285,6 +336,9 @@ LL | if let Either::One(mut _t) = em { } error[E0507]: cannot move out of captured variable in an `FnMut` closure --> $DIR/dont-suggest-ref-in-closure.rs:143:41 | +LL | let mut em = Either::One(X(Y)); + | ------ captured outer variable +... LL | while let Either::One(mut _t) = em { } | ------ ^^ | | | @@ -301,6 +355,9 @@ LL | while let Either::One(mut _t) = em { } error[E0507]: cannot move out of captured variable in an `FnMut` closure --> $DIR/dont-suggest-ref-in-closure.rs:147:15 | +LL | let mut em = Either::One(X(Y)); + | ------ captured outer variable +... LL | match em { | ^^ | | @@ -319,6 +376,9 @@ LL | Either::One(mut _t) error[E0507]: cannot move out of captured variable in an `FnMut` closure --> $DIR/dont-suggest-ref-in-closure.rs:154:15 | +LL | let mut em = Either::One(X(Y)); + | ------ captured outer variable +... LL | match em { | ^^ | | @@ -337,6 +397,9 @@ LL | Either::One(mut _t) => (), error[E0507]: cannot move out of captured variable in an `FnMut` closure --> $DIR/dont-suggest-ref-in-closure.rs:162:15 | +LL | let mut em = Either::One(X(Y)); + | ------ captured outer variable +... LL | match em { | ^^ | | -- 2.44.0