blob: db82c9fd43794e359691bcbbf81b7a99aec684f5 [file] [log] [blame]
error: lifetime may not live long enough
--> $DIR/project-fn-ret-invariant.rs:49:5
|
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