blob: f3f9962f10682019289a3b492ed93455651dd136 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
error: lifetime may not live long enough
--> $DIR/implied_bounds_closure.rs:17:16
|
LL | fn extend_lifetime<'a>(x: &'a str) -> &'static str {
| -- lifetime `'a` defined here
LL | let t = into_impl(x);
LL | helper(|_| t)
| ^ returning this value requires that `'a` must outlive `'static`
error: aborting due to 1 previous error
|