]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-52533.nll.stderr
Auto merge of #53324 - alexreg:self_in_typedefs, r=eddyb
[rust.git] / src / test / ui / issues / issue-52533.nll.stderr
1 warning: not reporting region error due to nll
2   --> $DIR/issue-52533.rs:15:16
3    |
4 LL |     foo(|a, b| b)
5    |                ^
6
7 error: unsatisfied lifetime constraints
8   --> $DIR/issue-52533.rs:15:16
9    |
10 LL |     foo(|a, b| b)
11    |          -  -  ^ closure was supposed to return data with lifetime `'2` but it is returning data with lifetime `'1`
12    |          |  |
13    |          |  has type `&'1 u32`
14    |          has type `&'2 u32`
15
16 error: aborting due to previous error
17