1error[E0312]: lifetime of reference outlives lifetime of borrowed content... 2 --> $DIR/unboxed-closures-infer-argument-types-two-region-pointers.rs:17:15 3 | 4LL | x.set(y); 5 | ^ 6 | 7note: ...the reference is valid for the anonymous lifetime #2 defined here... 8 --> $DIR/unboxed-closures-infer-argument-types-two-region-pointers.rs:16:14 9 | 10LL | doit(0, &|x, y| { 11 | ______________^ 12LL | | x.set(y); 13LL | | }); 14 | |_____^ 15note: ...but the borrowed content is only valid for the anonymous lifetime #3 defined here 16 --> $DIR/unboxed-closures-infer-argument-types-two-region-pointers.rs:16:14 17 | 18LL | doit(0, &|x, y| { 19 | ______________^ 20LL | | x.set(y); 21LL | | }); 22 | |_____^ 23 24error: aborting due to previous error 25 26For more information about this error, try `rustc --explain E0312`. 27