summaryrefslogtreecommitdiffstats
path: root/src/test/ui/associated-types/cache/project-fn-ret-contravariant.transmute.stderr
blob: 6d8ab2c3fdc741145002d690de7d2c467d1e938e (plain)
1
2
3
4
5
6
7
8
9
10
error: lifetime may not live long enough
  --> $DIR/project-fn-ret-contravariant.rs:39: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`

error: aborting due to previous error