1 warning: not reporting region error due to nll
2 --> $DIR/regions-escape-unboxed-closure.rs:16:27
4 LL | with_int(&mut |y| x = Some(y));
7 error: borrowed data escapes outside of closure
8 --> $DIR/regions-escape-unboxed-closure.rs:16:23
10 LL | let mut x: Option<&isize> = None;
11 | ----- `x` is declared here, outside of the closure body
12 LL | with_int(&mut |y| x = Some(y));
13 | - ^^^^^^^^^^^ `y` escapes the closure body here
15 | `y` is a reference that is only valid in the closure body
17 error: aborting due to previous error