Skip to content

Instantly share code, notes, and snippets.

@LLBlumire
Created April 16, 2016 18:51
Show Gist options
  • Save LLBlumire/6b6308bc232ef44c2d2c6e157ec6f454 to your computer and use it in GitHub Desktop.
Save LLBlumire/6b6308bc232ef44c2d2c6e157ec6f454 to your computer and use it in GitHub Desktop.
src\lib.rs:230:5: 230:65 error: the trait bound `for<'r> std::ops::Fn(&'r mut Box<Entity>): std::marker::Sized` is not satisfied [E0277]
src\lib.rs:230 pub instance_queue: Vec<(String, Box<Fn(&mut Box<Entity>)>)>,
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src\lib.rs:228:10: 228:15 note: in this expansion of #[derive_Clone] (defined in src\lib.rs)
src\lib.rs:230:5: 230:65 help: run `rustc --explain E0277` to see a detailed explanation
src\lib.rs:230:5: 230:65 note: `for<'r> std::ops::Fn(&'r mut Box<Entity>)` does not have a constant size known at compile-time
src\lib.rs:230:5: 230:65 note: required by `std::clone::Clone::clone`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment