Skip to content

Instantly share code, notes, and snippets.

@Bert-Proesmans
Last active April 13, 2018 22:51
Show Gist options
  • Select an option

  • Save Bert-Proesmans/f831758f131f017acb2ec80f78df5982 to your computer and use it in GitHub Desktop.

Select an option

Save Bert-Proesmans/f831758f131f017acb2ec80f78df5982 to your computer and use it in GitHub Desktop.
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`
/// 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