blob: 151564c3b45a169a5e4f23425a0c932227b20a5a (
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 previous error
|