1 error[E0521]: borrowed data escapes outside of closure
2 --> $DIR/anonymous-region-in-apit.rs:8:17
4 LL | fn qux(foo: impl Foo<&str>) {
5 | --- lifetime `'2` appears in the type of `foo`
6 LL | |baz: &str| foo.bar(baz);
9 | | | `baz` escapes the closure body here
10 | | | argument requires that `'1` must outlive `'2`
11 | | let's call the lifetime of this reference `'1`
12 | `baz` is a reference that is only valid in the closure body
14 error: aborting due to 1 previous error
16 For more information about this error, try `rustc --explain E0521`.