fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements 2 --> $DIR/regions-escape-method.rs:15:13 3 | 4LL | s.f(|p| p) 5 | ^ 6 | 7note: first, the lifetime cannot outlive the anonymous lifetime #2 defined on the body at 15:9... 8 --> $DIR/regions-escape-method.rs:15:9 9 | 10LL | s.f(|p| p) 11 | ^^^^^ 12 = note: ...so that the expression is assignable: 13 expected &i32 14 found &i32 15note: but, the lifetime must be valid for the method call at 15:5... 16 --> $DIR/regions-escape-method.rs:15:5 17 | 18LL | s.f(|p| p) 19 | ^^^^^^^^^^ 20note: ...so that a type/lifetime parameter is in scope here 21 --> $DIR/regions-escape-method.rs:15:5 22 | 23LL | s.f(|p| p) 24 | ^^^^^^^^^^ 25 26error: aborting due to previous error 27