]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-52213.nll.stderr
Change NLL compare mode to borrowck=migrate.
[rust.git] / src / test / ui / issues / issue-52213.nll.stderr
1 error: unsatisfied lifetime constraints
2   --> $DIR/issue-52213.rs:13:20
3    |
4 LL | fn transmute_lifetime<'a, 'b, T>(t: &'a (T,)) -> &'b T {
5    |                       --  -- lifetime `'b` defined here
6    |                       |
7    |                       lifetime `'a` defined here
8 LL |     match (&t,) { //~ ERROR cannot infer an appropriate lifetime
9 LL |         ((u,),) => u,
10    |                    ^ returning this value requires that `'a` must outlive `'b`
11
12 error: aborting due to previous error
13