rust/src/test/ui/unboxed-closures/issue-30906.stderr
2019-11-15 23:54:52 +09:00

13 lines
378 B
Plaintext

error[E0308]: mismatched types
--> $DIR/issue-30906.rs:15:5
|
LL | test(Compose(f, |_| {}));
| ^^^^ one type is more general than the other
|
= note: expected type `std::ops::FnOnce<(&'x str,)>`
found type `std::ops::FnOnce<(&str,)>`
error: aborting due to previous error
For more information about this error, try `rustc --explain E0308`.