1 error[E0308]: mismatched types
2 --> $DIR/issue-40000.rs:16:9
4 LL | foo(bar); //~ ERROR mismatched types
5 | ^^^ expected concrete lifetime, found bound lifetime parameter
7 = note: expected type `std::boxed::Box<(dyn for<'r> std::ops::Fn(&'r i32) + 'static)>`
8 found type `std::boxed::Box<dyn std::ops::Fn(_)>`
10 error: aborting due to previous error
12 For more information about this error, try `rustc --explain E0308`.