]>
Commit | Line | Data |
---|---|---|
8faf50e0 | 1 | error[E0312]: lifetime of reference outlives lifetime of borrowed content... |
0731742a | 2 | --> $DIR/issue-52533.rs:5:16 |
8faf50e0 XL |
3 | | |
4 | LL | foo(|a, b| b) | |
5 | | ^ | |
6 | | | |
29967ef6 | 7 | note: ...the reference is valid for the anonymous lifetime #1 defined on the body at 5:9... |
0731742a | 8 | --> $DIR/issue-52533.rs:5:9 |
8faf50e0 XL |
9 | | |
10 | LL | foo(|a, b| b) | |
11 | | ^^^^^^^^ | |
29967ef6 | 12 | note: ...but the borrowed content is only valid for the anonymous lifetime #2 defined on the body at 5:9 |
0731742a | 13 | --> $DIR/issue-52533.rs:5:9 |
8faf50e0 XL |
14 | | |
15 | LL | foo(|a, b| b) | |
16 | | ^^^^^^^^ | |
17 | ||
18 | error: aborting due to previous error | |
19 | ||
e1599b0c | 20 | For more information about this error, try `rustc --explain E0312`. |