From 64d98f8ee037282c35007b64c2649055c56af1db Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 14:19:03 +0200 Subject: Merging upstream version 1.68.2+dfsg1. Signed-off-by: Daniel Baumann --- src/test/ui/nll/issue-52534.stderr | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 src/test/ui/nll/issue-52534.stderr (limited to 'src/test/ui/nll/issue-52534.stderr') diff --git a/src/test/ui/nll/issue-52534.stderr b/src/test/ui/nll/issue-52534.stderr deleted file mode 100644 index b2b727fd4..000000000 --- a/src/test/ui/nll/issue-52534.stderr +++ /dev/null @@ -1,31 +0,0 @@ -error[E0597]: `x` does not live long enough - --> $DIR/issue-52534.rs:9:14 - | -LL | foo(|a| &x) - | - ^ `x` would have to be valid for `'0`... - | | - | has type `&'0 u32` -LL | -LL | } - | - ...but `x` will be dropped here, when the function `bar` returns - | - = note: functions cannot return a borrow to data owned within the function's scope, functions can only return borrows to data passed as arguments - = note: to learn more, visit - -error[E0597]: `y` does not live long enough - --> $DIR/issue-52534.rs:15:26 - | -LL | baz(|first, second| &y) - | ----- ^ `y` would have to be valid for `'0`... - | | - | has type `&'0 u32` -LL | -LL | } - | - ...but `y` will be dropped here, when the function `foobar` returns - | - = note: functions cannot return a borrow to data owned within the function's scope, functions can only return borrows to data passed as arguments - = note: to learn more, visit - -error: aborting due to 2 previous errors - -For more information about this error, try `rustc --explain E0597`. -- cgit v1.2.3