1 error: borrowed data escapes outside of function
2 --> $DIR/region-invariant-static-error-reporting.rs:25:9
4 LL | fn unify<'a>(x: Option<Invariant<'a>>, f: fn(Invariant<'a>)) {
5 | - `x` is a reference that is only valid in the function body
6 LL | let bad = if x.is_some() {
8 | ^^^^^^^^^^ `x` escapes the function body here
10 error: aborting due to previous error