Last active
April 13, 2018 22:51
-
-
Save Bert-Proesmans/f831758f131f017acb2ec80f78df5982 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| error[E0277]: the trait bound `medici_core::service::error::MissingEntityError<usize>: failure::Fail` is not satisfied | |
| --> src\implementation\effect\trigger.rs:18:23 | |
| | | |
| 18 | let game_entity = x.entities.get_mut(GAME_E_ID)?; | |
| | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the trait `failure::Fail` is not implemented for `medici_core::service::error::MissingEntityError<usize>` | |
| | | |
| = help: the following implementations were found: | |
| <medici_core::service::error::MissingEntityError<ID> as failure::Fail> | |
| = note: required because of the requirements on the impl of `std::convert::From<medici_core::service::error::MissingEntityError<usize>>` for `failure::Error` | |
| = note: required by `std::convert::From::from` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// Specific error thrown when the requested entity-id is not known. | |
| #[derive(Debug, Fail)] | |
| #[fail(display = "The entity with id `{:}` was not found", _0)] | |
| pub struct MissingEntityError<ID: Display>(pub ID); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment