]>
Commit | Line | Data |
---|---|---|
9fa01778 | 1 | error: lifetime may not live long enough |
923072b8 | 2 | --> $DIR/mir_check_cast_reify.rs:35:5 |
8faf50e0 | 3 | | |
8faf50e0 | 4 | LL | fn bar<'a>(x: &'a u32) -> &'static u32 { |
b7449926 | 5 | | -- lifetime `'a` defined here |
8faf50e0 | 6 | ... |
0bf4aa26 XL |
7 | LL | f(x) |
8 | | ^^^^ returning this value requires that `'a` must outlive `'static` | |
8faf50e0 XL |
9 | |
10 | error: aborting due to previous error | |
11 |