]> git.proxmox.com Git - rustc.git/blob - src/test/ui/unboxed-closures/unboxed-closures-infer-argument-types-two-region-pointers.stderr
New upstream version 1.63.0+dfsg1
[rustc.git] / src / test / ui / unboxed-closures / unboxed-closures-infer-argument-types-two-region-pointers.stderr
1 error: lifetime may not live long enough
2 --> $DIR/unboxed-closures-infer-argument-types-two-region-pointers.rs:17:9
3 |
4 LL | doit(0, &|x, y| {
5 | - - has type `&'1 i32`
6 | |
7 | has type `&Cell<&'2 i32>`
8 LL | x.set(y);
9 | ^^^^^^^^ argument requires that `'1` must outlive `'2`
10
11 error: aborting due to previous error
12