Skip to content

Instantly share code, notes, and snippets.

@gugahoa
Created November 29, 2017 03:34
Show Gist options
  • Save gugahoa/d36dda2239bbab103034b4860f3448b2 to your computer and use it in GitHub Desktop.
Save gugahoa/d36dda2239bbab103034b4860f3448b2 to your computer and use it in GitHub Desktop.
Compiling crates_bot v0.1.0 (file:///home/gugah/Development/Rust/crates-bot)
error[E0277]: the trait bound `std::vec::Vec<std::boxed::Box<erased_serde::Serialize>>: std::iter::FromIterator<std::boxed::Box<telebot::objects::InlineQueryResultArticle>>` is not satisfied
--> src/main.rs:43:18
|
43 | .collect();
| ^^^^^^^ a collection of type `std::vec::Vec<std::boxed::Box<erased_serde::Serialize>>` cannot be built from an iterator over elements of type `std::boxed::Box<telebot::objects::InlineQueryResultArticle>`
|
= help: the trait `std::iter::FromIterator<std::boxed::Box<telebot::objects::InlineQueryResultArticle>>` is not implemented for `std::vec::Vec<std::boxed::Box<erased_serde::Serialize>>`
error: aborting due to previous error
error: Could not compile `crates_bot`.
To learn more, run the command again with --verbose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment