]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-52533.nll.stderr
Merge commit 'dbee13661efa269cb4cd57bb4c6b99a19732b484' into sync_cg_clif-2020-12-27
[rust.git] / src / test / ui / issues / issue-52533.nll.stderr
1 error: lifetime may not live long enough
2   --> $DIR/issue-52533.rs:5:16
3    |
4 LL |     foo(|a, b| b)
5    |          -  -  ^ closure was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
6    |          |  |
7    |          |  has type `&'1 u32`
8    |          has type `&'2 u32`
9
10 error: aborting due to previous error
11