]>
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` | |
6 | help: to allow this `impl Trait` to capture borrowed data with lifetime `'a`, add `'a` as a constraint | |
7 | | | |
416331ca | 8 | LL | type E<'a, 'b> = impl Sized; + 'a |
dc9dc135 XL |
9 | | |
10 | ||
11 | error: aborting due to previous error | |
12 |