]>
Commit | Line | Data |
---|---|---|
f035d41b | 1 | error[E0308]: mismatched types |
0731742a | 2 | --> $DIR/closure-mismatch.rs:8:5 |
7cac9316 | 3 | | |
532ac7d7 | 4 | LL | baz(|_| ()); |
f035d41b | 5 | | ^^^ one type is more general than the other |
7cac9316 | 6 | | |
1b1a35ee XL |
7 | = note: expected type `for<'r> Fn<(&'r (),)>` |
8 | found type `Fn<(&(),)>` | |
7cac9316 | 9 | |
f035d41b | 10 | error: aborting due to previous error |
7cac9316 | 11 | |
f035d41b | 12 | For more information about this error, try `rustc --explain E0308`. |