summaryrefslogtreecommitdiffstats
path: root/src/test/ui/unboxed-closures/unboxed-closures-infer-argument-types-two-region-pointers.stderr
blob: e97157b83980ce4307e35c0dbcaefe79d4cb52e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 previous error