mirror of https://github.com/rust-lang/rust
13 lines
392 B
Plaintext
13 lines
392 B
Plaintext
error: lifetime may not live long enough
|
|
--> $DIR/unboxed-closures-infer-argument-types-two-region-pointers.rs:17:9
|
|
|
|
|
LL | doit(0, &|x, y| {
|
|
| - - has type `&'1 i32`
|
|
| |
|
|
| has type `&Cell<&'2 i32>`
|
|
LL | x.set(y);
|
|
| ^^^^^^^^ argument requires that `'1` must outlive `'2`
|
|
|
|
error: aborting due to 1 previous error
|
|
|