]>
Commit | Line | Data |
---|---|---|
dc9dc135 XL |
1 | error: lifetime may not live long enough |
2 | --> $DIR/error-handling.rs:13:56 | |
3 | | | |
4 | LL | fn foo<'a, 'b, 'c>(x: &'static i32, mut y: &'a i32) -> E<'b, 'c> { | |
5 | | -- lifetime `'a` defined here ^^^^^^^^^ opaque type requires that `'a` must outlive `'static` | |
e74abb32 | 6 | | |
60c5eb7d | 7 | = help: consider replacing `'a` with `'static` |
dc9dc135 XL |
8 | help: to allow this `impl Trait` to capture borrowed data with lifetime `'a`, add `'a` as a constraint |
9 | | | |
416331ca | 10 | LL | type E<'a, 'b> = impl Sized; + 'a |
dc9dc135 XL |
11 | | |
12 | ||
13 | error: aborting due to previous error | |
14 |