summaryrefslogtreecommitdiffstats
path: root/src/test/ui/suggestions/return-elided-lifetime.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/suggestions/return-elided-lifetime.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/suggestions/return-elided-lifetime.stderr')
-rw-r--r--src/test/ui/suggestions/return-elided-lifetime.stderr143
1 files changed, 0 insertions, 143 deletions
diff --git a/src/test/ui/suggestions/return-elided-lifetime.stderr b/src/test/ui/suggestions/return-elided-lifetime.stderr
deleted file mode 100644
index 273d95bc7..000000000
--- a/src/test/ui/suggestions/return-elided-lifetime.stderr
+++ /dev/null
@@ -1,143 +0,0 @@
-error[E0106]: missing lifetime specifier
- --> $DIR/return-elided-lifetime.rs:6:12
- |
-LL | fn f1() -> &i32 { loop {} }
- | ^ expected named lifetime parameter
- |
- = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
-help: consider using the `'static` lifetime
- |
-LL | fn f1() -> &'static i32 { loop {} }
- | +++++++
-
-error[E0106]: missing lifetime specifiers
- --> $DIR/return-elided-lifetime.rs:8:14
- |
-LL | fn f1_() -> (&i32, &i32) { loop {} }
- | ^ ^ expected named lifetime parameter
- | |
- | expected named lifetime parameter
- |
- = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
-help: consider using the `'static` lifetime
- |
-LL | fn f1_() -> (&'static i32, &'static i32) { loop {} }
- | +++++++ +++++++
-
-error[E0106]: missing lifetime specifier
- --> $DIR/return-elided-lifetime.rs:11:26
- |
-LL | fn f2(a: i32, b: i32) -> &i32 { loop {} }
- | ^ expected named lifetime parameter
- |
- = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
-help: consider using the `'static` lifetime
- |
-LL | fn f2(a: i32, b: i32) -> &'static i32 { loop {} }
- | +++++++
-
-error[E0106]: missing lifetime specifiers
- --> $DIR/return-elided-lifetime.rs:13:28
- |
-LL | fn f2_(a: i32, b: i32) -> (&i32, &i32) { loop {} }
- | ^ ^ expected named lifetime parameter
- | |
- | expected named lifetime parameter
- |
- = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from
-help: consider using the `'static` lifetime
- |
-LL | fn f2_(a: i32, b: i32) -> (&'static i32, &'static i32) { loop {} }
- | +++++++ +++++++
-
-error[E0106]: missing lifetime specifier
- --> $DIR/return-elided-lifetime.rs:17:17
- |
-LL | fn f3(s: &S) -> &i32 { loop {} }
- | -- ^ expected named lifetime parameter
- |
- = help: this function's return type contains a borrowed value, but the signature does not say which one of `s`'s 3 lifetimes it is borrowed from
-help: consider introducing a named lifetime parameter
- |
-LL | fn f3<'a>(s: &'a S<'a, 'a>) -> &'a i32 { loop {} }
- | ++++ ++ ++++++++ ++
-
-error[E0106]: missing lifetime specifiers
- --> $DIR/return-elided-lifetime.rs:19:26
- |
-LL | fn f3_(s: &S, t: &S) -> (&i32, &i32) { loop {} }
- | -- -- ^ ^ expected named lifetime parameter
- | |
- | expected named lifetime parameter
- |
- = help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from one of `s`'s 3 lifetimes or one of `t`'s 3 lifetimes
-help: consider introducing a named lifetime parameter
- |
-LL | fn f3_<'a>(s: &'a S<'a, 'a>, t: &'a S<'a, 'a>) -> (&'a i32, &'a i32) { loop {} }
- | ++++ ++ ++++++++ ++ ++++++++ ++ ++
-
-error[E0106]: missing lifetime specifier
- --> $DIR/return-elided-lifetime.rs:22:42
- |
-LL | fn f4<'a, 'b>(a: &'a i32, b: &'b i32) -> &i32 { loop {} }
- | ------- ------- ^ expected named lifetime parameter
- |
- = help: this function's return type contains a borrowed value with an elided lifetime, but the lifetime cannot be derived from the arguments
-note: these named lifetimes are available to use
- --> $DIR/return-elided-lifetime.rs:22:7
- |
-LL | fn f4<'a, 'b>(a: &'a i32, b: &'b i32) -> &i32 { loop {} }
- | ^^ ^^
-help: consider using one of the available lifetimes here
- |
-LL | fn f4<'a, 'b>(a: &'a i32, b: &'b i32) -> &'lifetime i32 { loop {} }
- | +++++++++
-
-error[E0106]: missing lifetime specifiers
- --> $DIR/return-elided-lifetime.rs:24:44
- |
-LL | fn f4_<'a, 'b>(a: &'a i32, b: &'b i32) -> (&i32, &i32) { loop {} }
- | ------- ------- ^ ^ expected named lifetime parameter
- | |
- | expected named lifetime parameter
- |
- = help: this function's return type contains a borrowed value with an elided lifetime, but the lifetime cannot be derived from the arguments
-note: these named lifetimes are available to use
- --> $DIR/return-elided-lifetime.rs:24:8
- |
-LL | fn f4_<'a, 'b>(a: &'a i32, b: &'b i32) -> (&i32, &i32) { loop {} }
- | ^^ ^^
-help: consider using one of the available lifetimes here
- |
-LL | fn f4_<'a, 'b>(a: &'a i32, b: &'b i32) -> (&'lifetime i32, &'lifetime i32) { loop {} }
- | +++++++++ +++++++++
-
-error[E0106]: missing lifetime specifier
- --> $DIR/return-elided-lifetime.rs:27:35
- |
-LL | fn f5<'a>(a: &'a i32, b: &i32) -> &i32 { loop {} }
- | ------- ---- ^ expected named lifetime parameter
- |
- = help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from `a` or `b`
-help: consider using the `'a` lifetime
- |
-LL | fn f5<'a>(a: &'a i32, b: &i32) -> &'a i32 { loop {} }
- | ++
-
-error[E0106]: missing lifetime specifiers
- --> $DIR/return-elided-lifetime.rs:29:37
- |
-LL | fn f5_<'a>(a: &'a i32, b: &i32) -> (&i32, &i32) { loop {} }
- | ------- ---- ^ ^ expected named lifetime parameter
- | |
- | expected named lifetime parameter
- |
- = help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from `a` or `b`
-help: consider using the `'a` lifetime
- |
-LL | fn f5_<'a>(a: &'a i32, b: &i32) -> (&'a i32, &'a i32) { loop {} }
- | ++ ++
-
-error: aborting due to 10 previous errors
-
-For more information about this error, try `rustc --explain E0106`.