]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issue-52533-1.nll.stderr
Rollup merge of #52769 - sinkuu:stray_test, r=alexcrichton
[rust.git] / src / test / ui / issue-52533-1.nll.stderr
1 warning: not reporting region error due to nll
2   --> $DIR/issue-52533-1.rs:19:18
3    |
4 LL |     gimme(|x, y| y)
5    |                  ^
6
7 error: unsatisfied lifetime constraints
8   --> $DIR/issue-52533-1.rs:19:18
9    |
10 LL |     gimme(|x, y| y)
11    |            -  -  ^ closure was supposed to return data with lifetime `'1` but it is returning data with lifetime `'2`
12    |            |  |
13    |            |  has type `&Foo<'_, '1, u32>`
14    |            has type `&Foo<'_, '2, u32>`
15
16 error: aborting due to previous error
17