From: lqd Date: Fri, 28 Jun 2019 11:37:08 +0000 (+0200) Subject: Bless output of test borrowck/borrowck-escaping-closure-error-2.rs for Polonius X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=6fe52928a3dd9a69ebd6422a23aba879871026c4;p=rust.git Bless output of test borrowck/borrowck-escaping-closure-error-2.rs for Polonius --- diff --git a/src/test/ui/borrowck/borrowck-escaping-closure-error-2.polonius.stderr b/src/test/ui/borrowck/borrowck-escaping-closure-error-2.polonius.stderr new file mode 100644 index 00000000000..89af8764557 --- /dev/null +++ b/src/test/ui/borrowck/borrowck-escaping-closure-error-2.polonius.stderr @@ -0,0 +1,16 @@ +error[E0597]: `books` does not live long enough + --> $DIR/borrowck-escaping-closure-error-2.rs:11:17 + | +LL | Box::new(|| books.push(4)) + | ------------^^^^^--------- + | | | | + | | | borrowed value does not live long enough + | | value captured here + | borrow later used here +LL | +LL | } + | - `books` dropped here while still borrowed + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0597`.