1 warning: not reporting region error due to nll
2 --> $DIR/mir_check_cast_reify.rs:46:25
4 LL | let f: fn(_) -> _ = foo;
7 error: borrowed data escapes outside of closure
8 --> $DIR/mir_check_cast_reify.rs:48:5
10 LL | fn bar<'a>(x: &'a u32) -> &'static u32 {
11 | - `x` is a reference that is only valid in the closure body
14 | ^^^^ `x` escapes the closure body here
16 error: aborting due to previous error