error: lifetime may not live long enough | |
--> $DIR/project-fn-ret-contravariant.rs:38:4 | |
| | |
LL | fn baz<'a,'b>(x: &'a u32) -> &'static u32 { | |
| -- lifetime `'a` defined here | |
LL | bar(foo, x) | |
| ^^^^^^^^^^^ returning this value requires that `'a` must outlive `'static` | |
| | |
= help: consider replacing `'a` with `'static` | |
error: aborting due to previous error | |