]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-52533.stderr
Rollup merge of #60492 - acrrd:issues/54054_chain, r=SimonSapin
[rust.git] / src / test / ui / issues / issue-52533.stderr
1 error[E0312]: lifetime of reference outlives lifetime of borrowed content...
2   --> $DIR/issue-52533.rs:5:16
3    |
4 LL |     foo(|a, b| b)
5    |                ^
6    |
7 note: ...the reference is valid for the anonymous lifetime #2 defined on the body at 5:9...
8   --> $DIR/issue-52533.rs:5:9
9    |
10 LL |     foo(|a, b| b)
11    |         ^^^^^^^^
12 note: ...but the borrowed content is only valid for the anonymous lifetime #3 defined on the body at 5:9
13   --> $DIR/issue-52533.rs:5:9
14    |
15 LL |     foo(|a, b| b)
16    |         ^^^^^^^^
17
18 error: aborting due to previous error
19