blob: f74d4ba73bf4e34ad32e63636e60cf1a6d1e7c81 [file] [log] [blame]
error: lifetime may not live long enough
--> $DIR/project-fn-ret-invariant.rs:48:4
|
LL | fn baz<'a,'b>(x: Type<'a>) -> Type<'static> {
| -- 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