]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-52533.stderr
Merge commit '97e504549371d7640cf011d266e3c17394fdddac' into sync_cg_clif-2021-12-20
[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 #1 defined here...
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 #2 defined here
13   --> $DIR/issue-52533.rs:5:9
14    |
15 LL |     foo(|a, b| b)
16    |         ^^^^^^^^
17
18 error: aborting due to previous error
19
20 For more information about this error, try `rustc --explain E0312`.