rust/src/test/ui/unboxed-closures/issue-30906.stderr

13 lines
378 B
Plaintext
Raw Normal View History

2019-11-14 02:56:36 -06:00
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`.