]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-52533-1.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-52533-1.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-52533-1.rs:19:18
3    |
4 LL |     gimme(|x, y| y)
5    |                  ^ lifetime mismatch
6    |
7    = note: expected type `&Foo<'_, '_, u32>`
8               found type `&Foo<'_, '_, u32>`
9 note: the anonymous lifetime #4 defined on the body at 19:11...
10   --> $DIR/issue-52533-1.rs:19:11
11    |
12 LL |     gimme(|x, y| y)
13    |           ^^^^^^^^
14 note: ...does not necessarily outlive the anonymous lifetime #3 defined on the body at 19:11
15   --> $DIR/issue-52533-1.rs:19:11
16    |
17 LL |     gimme(|x, y| y)
18    |           ^^^^^^^^
19
20 error: aborting due to previous error
21
22 For more information about this error, try `rustc --explain E0308`.