summaryrefslogtreecommitdiffstats
path: root/src/test/ui/cleanup-rvalue-scopes-cf.stderr
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-17 12:19:13 +0000
commit218caa410aa38c29984be31a5229b9fa717560ee (patch)
treec54bd55eeb6e4c508940a30e94c0032fbd45d677 /src/test/ui/cleanup-rvalue-scopes-cf.stderr
parentReleasing progress-linux version 1.67.1+dfsg1-1~progress7.99u1. (diff)
downloadrustc-218caa410aa38c29984be31a5229b9fa717560ee.tar.xz
rustc-218caa410aa38c29984be31a5229b9fa717560ee.zip
Merging upstream version 1.68.2+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/test/ui/cleanup-rvalue-scopes-cf.stderr')
-rw-r--r--src/test/ui/cleanup-rvalue-scopes-cf.stderr122
1 files changed, 0 insertions, 122 deletions
diff --git a/src/test/ui/cleanup-rvalue-scopes-cf.stderr b/src/test/ui/cleanup-rvalue-scopes-cf.stderr
deleted file mode 100644
index 425cd7514..000000000
--- a/src/test/ui/cleanup-rvalue-scopes-cf.stderr
+++ /dev/null
@@ -1,122 +0,0 @@
-error[E0716]: temporary value dropped while borrowed
- --> $DIR/cleanup-rvalue-scopes-cf.rs:26:19
- |
-LL | let x1 = arg(&AddFlags(1));
- | ^^^^^^^^^^^ - temporary value is freed at the end of this statement
- | |
- | creates a temporary value which is freed while still in use
-...
-LL | (x1, x2, x3, x4, x5, x6, x7);
- | -- borrow later used here
- |
-help: consider using a `let` binding to create a longer lived value
- |
-LL ~ let binding = AddFlags(1);
-LL ~ let x1 = arg(&binding);
- |
-
-error[E0716]: temporary value dropped while borrowed
- --> $DIR/cleanup-rvalue-scopes-cf.rs:27:14
- |
-LL | let x2 = AddFlags(1).get();
- | ^^^^^^^^^^^ - temporary value is freed at the end of this statement
- | |
- | creates a temporary value which is freed while still in use
-...
-LL | (x1, x2, x3, x4, x5, x6, x7);
- | -- borrow later used here
- |
-help: consider using a `let` binding to create a longer lived value
- |
-LL ~ let binding = AddFlags(1);
-LL ~ let x2 = binding.get();
- |
-
-error[E0716]: temporary value dropped while borrowed
- --> $DIR/cleanup-rvalue-scopes-cf.rs:28:21
- |
-LL | let x3 = &*arg(&AddFlags(1));
- | ^^^^^^^^^^^ - temporary value is freed at the end of this statement
- | |
- | creates a temporary value which is freed while still in use
-...
-LL | (x1, x2, x3, x4, x5, x6, x7);
- | -- borrow later used here
- |
-help: consider using a `let` binding to create a longer lived value
- |
-LL ~ let binding = AddFlags(1);
-LL ~ let x3 = &*arg(&binding);
- |
-
-error[E0716]: temporary value dropped while borrowed
- --> $DIR/cleanup-rvalue-scopes-cf.rs:29:24
- |
-LL | let ref x4 = *arg(&AddFlags(1));
- | ^^^^^^^^^^^ - temporary value is freed at the end of this statement
- | |
- | creates a temporary value which is freed while still in use
-...
-LL | (x1, x2, x3, x4, x5, x6, x7);
- | -- borrow later used here
- |
-help: consider using a `let` binding to create a longer lived value
- |
-LL ~ let binding = AddFlags(1);
-LL ~ let ref x4 = *arg(&binding);
- |
-
-error[E0716]: temporary value dropped while borrowed
- --> $DIR/cleanup-rvalue-scopes-cf.rs:30:24
- |
-LL | let &ref x5 = arg(&AddFlags(1));
- | ^^^^^^^^^^^ - temporary value is freed at the end of this statement
- | |
- | creates a temporary value which is freed while still in use
-...
-LL | (x1, x2, x3, x4, x5, x6, x7);
- | -- borrow later used here
- |
-help: consider using a `let` binding to create a longer lived value
- |
-LL ~ let binding = AddFlags(1);
-LL ~ let &ref x5 = arg(&binding);
- |
-
-error[E0716]: temporary value dropped while borrowed
- --> $DIR/cleanup-rvalue-scopes-cf.rs:31:14
- |
-LL | let x6 = AddFlags(1).get();
- | ^^^^^^^^^^^ - temporary value is freed at the end of this statement
- | |
- | creates a temporary value which is freed while still in use
-...
-LL | (x1, x2, x3, x4, x5, x6, x7);
- | -- borrow later used here
- |
-help: consider using a `let` binding to create a longer lived value
- |
-LL ~ let binding = AddFlags(1);
-LL ~ let x6 = binding.get();
- |
-
-error[E0716]: temporary value dropped while borrowed
- --> $DIR/cleanup-rvalue-scopes-cf.rs:32:44
- |
-LL | let StackBox { f: x7 } = StackBox { f: AddFlags(1).get() };
- | ^^^^^^^^^^^ - temporary value is freed at the end of this statement
- | |
- | creates a temporary value which is freed while still in use
-LL |
-LL | (x1, x2, x3, x4, x5, x6, x7);
- | -- borrow later used here
- |
-help: consider using a `let` binding to create a longer lived value
- |
-LL ~ let binding = AddFlags(1);
-LL ~ let StackBox { f: x7 } = StackBox { f: binding.get() };
- |
-
-error: aborting due to 7 previous errors
-
-For more information about this error, try `rustc --explain E0716`.