]> git.lizzy.rs Git - rust.git/blob - src/test/ui/associated-types/cache/project-fn-ret-invariant.krisskross.nll.stderr
Change NLL compare mode to borrowck=migrate.
[rust.git] / src / test / ui / associated-types / cache / project-fn-ret-invariant.krisskross.nll.stderr
1 error: unsatisfied lifetime constraints
2   --> $DIR/project-fn-ret-invariant.rs:65:4
3    |
4 LL | fn transmute<'a,'b>(x: Type<'a>, y: Type<'b>) -> (Type<'a>, Type<'b>) {
5    |              -- -- lifetime `'b` defined here
6    |              |
7    |              lifetime `'a` defined here
8 ...
9 LL |    (a, b) //[krisskross]~ ERROR E0623
10    |    ^^^^^^ function was supposed to return data with lifetime `'b` but it is returning data with lifetime `'a`
11
12 error: unsatisfied lifetime constraints
13   --> $DIR/project-fn-ret-invariant.rs:65:4
14    |
15 LL | fn transmute<'a,'b>(x: Type<'a>, y: Type<'b>) -> (Type<'a>, Type<'b>) {
16    |              -- -- lifetime `'b` defined here
17    |              |
18    |              lifetime `'a` defined here
19 ...
20 LL |    (a, b) //[krisskross]~ ERROR E0623
21    |    ^^^^^^ function was supposed to return data with lifetime `'a` but it is returning data with lifetime `'b`
22
23 error: aborting due to 2 previous errors
24