From 40e6b025b27892877935c96315920b382083fcce Mon Sep 17 00:00:00 2001 From: lqd Date: Mon, 15 Jul 2019 18:26:51 +0200 Subject: [PATCH] Bless output of test nll/return-ref-mut-issue-46557.rs for Polonius --- .../return-ref-mut-issue-46557.polonius.stderr | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/test/ui/nll/return-ref-mut-issue-46557.polonius.stderr diff --git a/src/test/ui/nll/return-ref-mut-issue-46557.polonius.stderr b/src/test/ui/nll/return-ref-mut-issue-46557.polonius.stderr new file mode 100644 index 000000000000..8e3cf59cffb4 --- /dev/null +++ b/src/test/ui/nll/return-ref-mut-issue-46557.polonius.stderr @@ -0,0 +1,15 @@ +error[E0716]: temporary value dropped while borrowed + --> $DIR/return-ref-mut-issue-46557.rs:4:21 + | +LL | let ref mut x = 1234543; + | ^^^^^^^ creates a temporary which is freed while still in use +LL | x + | - borrow later used here +LL | } + | - temporary value is freed at the end of this statement + | + = note: consider using a `let` binding to create a longer lived value + +error: aborting due to previous error + +For more information about this error, try `rustc --explain E0716`.