]> git.lizzy.rs Git - rust.git/blob - src/test/ui/nll/issue-52213.stderr
Auto merge of #105145 - Ayush1325:sequential-remote-server, r=Mark-Simulacrum
[rust.git] / src / test / ui / nll / issue-52213.stderr
1 error: lifetime may not live long enough
2   --> $DIR/issue-52213.rs:3: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,) {
9 LL |         ((u,),) => u,
10    |                    ^ function was supposed to return data with lifetime `'b` but it is returning data with lifetime `'a`
11    |
12    = help: consider adding the following bound: `'a: 'b`
13
14 error: aborting due to previous error
15