]>
Commit | Line | Data |
---|---|---|
0731742a XL |
1 | error[E0271]: type mismatch resolving `for<'r> <[closure@$DIR/closure-mismatch.rs:8:9: 8:15] as std::ops::FnOnce<(&'r (),)>>::Output == ()` |
2 | --> $DIR/closure-mismatch.rs:8:5 | |
7cac9316 | 3 | | |
e1599b0c XL |
4 | LL | fn baz<T: Foo>(_: T) {} |
5 | | --- --- required by this bound in `baz` | |
6 | ... | |
532ac7d7 | 7 | LL | baz(|_| ()); |
7cac9316 XL |
8 | | ^^^ expected bound lifetime parameter, found concrete lifetime |
9 | | | |
0731742a | 10 | = note: required because of the requirements on the impl of `Foo` for `[closure@$DIR/closure-mismatch.rs:8:9: 8:15]` |
7cac9316 | 11 | |
ea8adc8c | 12 | error[E0631]: type mismatch in closure arguments |
0731742a | 13 | --> $DIR/closure-mismatch.rs:8:5 |
7cac9316 | 14 | | |
e1599b0c XL |
15 | LL | fn baz<T: Foo>(_: T) {} |
16 | | --- --- required by this bound in `baz` | |
17 | ... | |
532ac7d7 | 18 | LL | baz(|_| ()); |
ea8adc8c | 19 | | ^^^ ------ found signature of `fn(_) -> _` |
7cac9316 | 20 | | | |
ea8adc8c | 21 | | expected signature of `for<'r> fn(&'r ()) -> _` |
7cac9316 | 22 | | |
0731742a | 23 | = note: required because of the requirements on the impl of `Foo` for `[closure@$DIR/closure-mismatch.rs:8:9: 8:15]` |
7cac9316 | 24 | |
041b39d2 | 25 | error: aborting due to 2 previous errors |
7cac9316 | 26 | |
60c5eb7d XL |
27 | Some errors have detailed explanations: E0271, E0631. |
28 | For more information about an error, try `rustc --explain E0271`. |