]> git.proxmox.com Git - rustc.git/blame - src/test/ui/associated-types/cache/project-fn-ret-invariant.transmute.nll.stderr
New upstream version 1.41.1+dfsg1
[rustc.git] / src / test / ui / associated-types / cache / project-fn-ret-invariant.transmute.nll.stderr
CommitLineData
48663c56
XL
1error: lifetime may not live long enough
2 --> $DIR/project-fn-ret-invariant.rs:48:4
3 |
4LL | fn baz<'a,'b>(x: Type<'a>) -> Type<'static> {
5 | -- lifetime `'a` defined here
6...
7LL | bar(foo, x)
8 | ^^^^^^^^^^^ returning this value requires that `'a` must outlive `'static`
60c5eb7d
XL
9 |
10 = help: consider replacing `'a` with `'static`
48663c56
XL
11
12error: aborting due to previous error
13