summaryrefslogtreecommitdiffstats
path: root/src/test/ui/nll/polonius/polonius-smoke-test.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:03 +0000
commit64d98f8ee037282c35007b64c2649055c56af1db (patch)
tree5492bcf97fce41ee1c0b1cc2add283f3e66cdab0 /src/test/ui/nll/polonius/polonius-smoke-test.stderr
parentAdding debian version 1.67.1+dfsg1-1. (diff)
downloadrustc-64d98f8ee037282c35007b64c2649055c56af1db.tar.xz
rustc-64d98f8ee037282c35007b64c2649055c56af1db.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/nll/polonius/polonius-smoke-test.stderr')
-rw-r--r--src/test/ui/nll/polonius/polonius-smoke-test.stderr43
1 files changed, 0 insertions, 43 deletions
diff --git a/src/test/ui/nll/polonius/polonius-smoke-test.stderr b/src/test/ui/nll/polonius/polonius-smoke-test.stderr
deleted file mode 100644
index fa1a6a9c9..000000000
--- a/src/test/ui/nll/polonius/polonius-smoke-test.stderr
+++ /dev/null
@@ -1,43 +0,0 @@
-error[E0515]: cannot return reference to local variable `x`
- --> $DIR/polonius-smoke-test.rs:6:5
- |
-LL | &x
- | ^^ returns a reference to data owned by the current function
-
-error[E0503]: cannot use `x` because it was mutably borrowed
- --> $DIR/polonius-smoke-test.rs:12:13
- |
-LL | let y = &mut x;
- | ------ borrow of `x` occurs here
-LL | let z = x;
- | ^ use of borrowed `x`
-LL | let w = y;
- | - borrow later used here
-
-error[E0505]: cannot move out of `x` because it is borrowed
- --> $DIR/polonius-smoke-test.rs:18:13
- |
-LL | pub fn use_while_mut_fr(x: &mut i32) -> &mut i32 {
- | - let's call the lifetime of this reference `'1`
-LL | let y = &mut *x;
- | ------- borrow of `*x` occurs here
-LL | let z = x;
- | ^ move out of `x` occurs here
-LL | y
- | - returning this value requires that `*x` is borrowed for `'1`
-
-error[E0505]: cannot move out of `s` because it is borrowed
- --> $DIR/polonius-smoke-test.rs:42:5
- |
-LL | let r = &mut *s;
- | ------- borrow of `*s` occurs here
-LL | let tmp = foo(&r);
-LL | s;
- | ^ move out of `s` occurs here
-LL | tmp;
- | --- borrow later used here
-
-error: aborting due to 4 previous errors
-
-Some errors have detailed explanations: E0503, E0505, E0515.
-For more information about an error, try `rustc --explain E0503`.