fork/rust
git clone https://git.julia.blue/fork/rust
5e1a799842b
1.41.0
1error[E0312]: lifetime of reference outlives lifetime of borrowed content... 2 --> $DIR/issue-52533.rs:5:16 3 | 4LL | foo(|a, b| b) 5 | ^ 6 | 7note: ...the reference is valid for the anonymous lifetime #2 defined on the body at 5:9... 8 --> $DIR/issue-52533.rs:5:9 9 | 10LL | foo(|a, b| b) 11 | ^^^^^^^^ 12note: ...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 | 15LL | foo(|a, b| b) 16 | ^^^^^^^^ 17 18error: aborting due to previous error 19 20For more information about this error, try `rustc --explain E0312`.