]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-52533-1.stderr
Rollup merge of #91804 - woppopo:const_clone, r=oli-obk
[rust.git] / src / test / ui / issues / issue-52533-1.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-52533-1.rs:9:18
3    |
4 LL |     gimme(|x, y| y)
5    |                  ^ lifetime mismatch
6    |
7    = note: expected reference `&Foo<'_, '_, u32>`
8               found reference `&Foo<'_, '_, u32>`
9 note: the anonymous lifetime #3 defined here...
10   --> $DIR/issue-52533-1.rs:9:11
11    |
12 LL |     gimme(|x, y| y)
13    |           ^^^^^^^^
14 note: ...does not necessarily outlive the anonymous lifetime #2 defined here
15   --> $DIR/issue-52533-1.rs:9: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`.