summary refs log tree commit diff
path: root/src/test/ui/issues/issue-52533.stderr
blob: 586548002072ed201e1a4fb44de50acfaf2a38da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
error[E0312]: lifetime of reference outlives lifetime of borrowed content...
  --> $DIR/issue-52533.rs:5:16
   |
LL |     foo(|a, b| b)
   |                ^
   |
note: ...the reference is valid for the anonymous lifetime #2 defined on the body at 5:9...
  --> $DIR/issue-52533.rs:5:9
   |
LL |     foo(|a, b| b)
   |         ^^^^^^^^
note: ...but the borrowed content is only valid for the anonymous lifetime #3 defined on the body at 5:9
  --> $DIR/issue-52533.rs:5:9
   |
LL |     foo(|a, b| b)
   |         ^^^^^^^^

error: aborting due to previous error

For more information about this error, try `rustc --explain E0312`.