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