1 error[E0308]: mismatched types
2 --> $DIR/closure-mismatch.rs:8:5
5 | ^^^ lifetime mismatch
7 = note: expected type `for<'r> Fn<(&'r (),)>`
8 found type `Fn<(&(),)>`
9 note: this closure does not fulfill the lifetime requirements
10 --> $DIR/closure-mismatch.rs:8:9
14 note: the lifetime requirement is introduced here
15 --> $DIR/closure-mismatch.rs:5:11
17 LL | fn baz<T: Foo>(_: T) {}
20 error: aborting due to previous error
22 For more information about this error, try `rustc --explain E0308`.