1 error: lifetime may not live long enough
2 --> $DIR/project-fn-ret-contravariant.rs:46:4
4 LL | fn transmute<'a,'b>(x: &'a u32, y: &'b u32) -> (&'a u32, &'b u32) {
5 | -- -- lifetime `'b` defined here
7 | lifetime `'a` defined here
10 | ^^^^^^ function was supposed to return data with lifetime `'b` but it is returning data with lifetime `'a`
12 = help: consider adding the following bound: `'a: 'b`
14 error: lifetime may not live long enough
15 --> $DIR/project-fn-ret-contravariant.rs:46:4
17 LL | fn transmute<'a,'b>(x: &'a u32, y: &'b u32) -> (&'a u32, &'b u32) {
18 | -- -- lifetime `'b` defined here
20 | lifetime `'a` defined here
23 | ^^^^^^ function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b`
25 = help: consider adding the following bound: `'b: 'a`
27 help: `'a` and `'b` must be the same: replace one with the other
29 error: aborting due to 2 previous errors