You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 28, 2025. It is now read-only.
help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from one of `a`'s 2 lifetimes or `c`
24
-
--> $DIR/issue-30255.rs:14:9
17
+
| -- ---- ^ expected named lifetime parameter
25
18
|
26
-
LL | fn g(a: &S, b: bool, c: &i32) -> &i32 {
27
-
| ^^ ^^^^
19
+
= help: this function's return type contains a borrowed value, but the signature does not say whether it is borrowed from one of `a`'s 2 lifetimes or `c`
28
20
help: consider introducing a 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`, one of `c`'s 2 lifetimes, or `d`
40
-
--> $DIR/issue-30255.rs:19:9
29
+
| ----- -- ---- ^ 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`, one of `c`'s 2 lifetimes, or `d`
44
32
help: consider introducing a named lifetime parameter
0 commit comments