1 error[E0271]: type mismatch resolving `for<'r> <[closure@$DIR/closure-mismatch.rs:18:9: 18:15] as std::ops::FnOnce<(&'r (),)>>::Output == ()`
2 --> $DIR/closure-mismatch.rs:18:5
5 | ^^^ expected bound lifetime parameter, found concrete lifetime
7 = note: concrete lifetime that was found is lifetime '_#0r
8 = note: required because of the requirements on the impl of `Foo` for `[closure@$DIR/closure-mismatch.rs:18:9: 18:15]`
9 = note: required by `baz`
11 error[E0281]: type mismatch: `[closure@$DIR/closure-mismatch.rs:18:9: 18:15]` implements the trait `std::ops::Fn<(_,)>`, but the trait `for<'r> std::ops::Fn<(&'r (),)>` is required
12 --> $DIR/closure-mismatch.rs:18:5
15 | ^^^ ------ implements `std::ops::Fn<(_,)>`
17 | expected concrete lifetime, found bound lifetime parameter
18 | requires `for<'r> std::ops::Fn<(&'r (),)>`
20 = note: required because of the requirements on the impl of `Foo` for `[closure@$DIR/closure-mismatch.rs:18:9: 18:15]`
21 = note: required by `baz`
23 error: aborting due to 2 previous errors