1 error: implementation of `FnOnce` is not general enough
2 --> $DIR/closure-mismatch.rs:8:5
5 | ^^^^^^^^^^^ implementation of `FnOnce` is not general enough
7 = note: closure with signature `fn(&'2 ())` must implement `FnOnce<(&'1 (),)>`, for any lifetime `'1`...
8 = note: ...but it actually implements `FnOnce<(&'2 (),)>`, for some specific lifetime `'2`
10 error[E0308]: mismatched types
11 --> $DIR/closure-mismatch.rs:8:5
14 | ^^^^^^^^^^^ one type is more general than the other
16 = note: expected type `for<'r> Fn<(&'r (),)>`
17 found type `Fn<(&(),)>`
18 note: this closure does not fulfill the lifetime requirements
19 --> $DIR/closure-mismatch.rs:8:9
23 note: the lifetime requirement is introduced here
24 --> $DIR/closure-mismatch.rs:5:11
26 LL | fn baz<T: Foo>(_: T) {}
29 error: aborting due to 2 previous errors
31 For more information about this error, try `rustc --explain E0308`.