]> git.lizzy.rs Git - rust.git/blob - src/test/ui/issues/issue-40000.stderr
Auto merge of #54624 - arielb1:evaluate-outlives, r=nikomatsakis
[rust.git] / src / test / ui / issues / issue-40000.stderr
1 error[E0308]: mismatched types
2   --> $DIR/issue-40000.rs:16:9
3    |
4 LL |     foo(bar); //~ ERROR mismatched types
5    |         ^^^ expected concrete lifetime, found bound lifetime parameter
6    |
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(_)>`
9
10 error: aborting due to previous error
11
12 For more information about this error, try `rustc --explain E0308`.