fork/rust
git clone https://git.julia.blue/fork/rust
8d69840ab92
1.43.1
1error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements 2 --> $DIR/regions-ret-borrowed.rs:13:14 3 | 4LL | with(|o| o) 5 | ^ 6 | 7note: first, the lifetime cannot outlive the anonymous lifetime #2 defined on the body at 13:10... 8 --> $DIR/regions-ret-borrowed.rs:13:10 9 | 10LL | with(|o| o) 11 | ^^^^^ 12note: ...so that the expression is assignable 13 --> $DIR/regions-ret-borrowed.rs:13:14 14 | 15LL | with(|o| o) 16 | ^ 17 = note: expected `&isize` 18 found `&isize` 19note: but, the lifetime must be valid for the lifetime `'a` as defined on the function body at 12:14... 20 --> $DIR/regions-ret-borrowed.rs:12:14 21 | 22LL | fn return_it<'a>() -> &'a isize { 23 | ^^ 24note: ...so that reference does not outlive borrowed content 25 --> $DIR/regions-ret-borrowed.rs:13:5 26 | 27LL | with(|o| o) 28 | ^^^^^^^^^^^ 29 30error: aborting due to previous error 31 32For more information about this error, try `rustc --explain E0495`.