Skip to content

Instantly share code, notes, and snippets.

@beefsack
Created April 26, 2017 13:23
Show Gist options
  • Select an option

  • Save beefsack/2098d853fb8b40a6404ae2c890c4d7f0 to your computer and use it in GitHub Desktop.

Select an option

Save beefsack/2098d853fb8b40a6404ae2c890c4d7f0 to your computer and use it in GitHub Desktop.
Compiling brdgme-game v0.1.0 (file:///home/beefsack/Development/brdgme/game)
error[E0277]: the trait bound `command::parser::Many<std::string::String, command::parser::Token>: command::parser::Parser<std::string::String>` is not satisfied
--> src/command/parser.rs:561:22
|
561 | parsers.push(Box::new(Many::any(Token::new("fart"))));
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `command::parser::Parser<std::string::String>` is not implemented for `command::parser::Many<std::string::String, command::parser::Token>`
|
= help: the following implementations were found:
<command::parser::Many<T, TP> as command::parser::Parser<std::vec::Vec<T>>>
= note: required for the cast to the object type `command::parser::Parser<std::string::String>`
error[E0277]: the trait bound `command::parser::Parser<std::string::String>: std::marker::Sized` is not satisfied
--> src/command/parser.rs:562:22
|
562 | let parser = OneOf::new(parsers);
| ^^^^^^^^^^ the trait `std::marker::Sized` is not implemented for `command::parser::Parser<std::string::String>`
|
= note: `command::parser::Parser<std::string::String>` does not have a constant size known at compile-time
= note: required by `<command::parser::OneOf<T, TP>>::new`
error[E0277]: the trait bound `command::parser::Parser<std::string::String>: std::marker::Sized` is not satisfied
--> src/command/parser.rs:562:22
|
562 | let parser = OneOf::new(parsers);
| ^^^^^^^^^^^^^^^^^^^ the trait `std::marker::Sized` is not implemented for `command::parser::Parser<std::string::String>`
|
= note: `command::parser::Parser<std::string::String>` does not have a constant size known at compile-time
= note: required by `command::parser::OneOf`
error: aborting due to 3 previous errors
error: Could not compile `brdgme-game`.
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