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
= help: this function's return type contains a borrowed value, but the signature does not say which one of argument 1's 2 lifetimes it is borrowed from
8
+
= note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html
9
+
help: consider making the bound lifetime-generic with a new `'b` lifetime
= help: this function's return type contains a borrowed value, but the signature does not say which one of argument 1's 2 lifetimes it is borrowed from
25
+
= note: for more information on higher-ranked polymorphism, visit https://doc.rust-lang.org/nomicon/hrtb.html
26
+
help: consider making the bound lifetime-generic with a new `'b` lifetime
= help: this function's return type contains a borrowed value, but the signature does not say which one of argument 1's 2 lifetimes it is borrowed from
42
+
note: these named lifetimes are available to use
43
+
--> $DIR/missing-lt-for-hrtb.rs:5:10
44
+
|
45
+
LL | struct V<'a>(&'a dyn for<'b> Fn(&X) -> &X);
46
+
| ^^ ^^
47
+
48
+
error[E0106]: missing lifetime specifier
49
+
--> $DIR/missing-lt-for-hrtb.rs:5:41
50
+
|
51
+
LL | struct V<'a>(&'a dyn for<'b> Fn(&X) -> &X);
52
+
| -- ^ expected named lifetime parameter
53
+
|
54
+
= help: this function's return type contains a borrowed value, but the signature does not say which one of argument 1's 2 lifetimes it is borrowed from
55
+
note: these named lifetimes are available to use
56
+
--> $DIR/missing-lt-for-hrtb.rs:5:10
57
+
|
58
+
LL | struct V<'a>(&'a dyn for<'b> Fn(&X) -> &X);
59
+
| ^^ ^^
60
+
61
+
error: aborting due to 4 previous errors
62
+
63
+
For more information about this error, try `rustc --explain E0106`.
0 commit comments