1error: lifetime may not live long enough
2  --> $DIR/unboxed-closures-infer-argument-types-two-region-pointers.rs:17:9
3   |
4LL |     doit(0, &|x, y| {
5   |               -  - has type `&'1 i32`
6   |               |
7   |               has type `&Cell<&'2 i32>`
8LL |         x.set(y);
9   |         ^^^^^^^^ argument requires that `'1` must outlive `'2`
10
11error: aborting due to previous error
12
13