]>
Commit | Line | Data |
---|---|---|
923072b8 FG |
1 | error: lifetime may not live long enough |
2 | --> $DIR/project-fn-ret-contravariant.rs:39:4 | |
b7449926 | 3 | | |
b7449926 | 4 | LL | fn baz<'a,'b>(x: &'a u32) -> &'static u32 { |
923072b8 | 5 | | -- lifetime `'a` defined here |
532ac7d7 | 6 | LL | bar(foo, x) |
923072b8 | 7 | | ^^^^^^^^^^^ returning this value requires that `'a` must outlive `'static` |
b7449926 XL |
8 | |
9 | error: aborting due to previous error | |
10 |