Skip to content

Instantly share code, notes, and snippets.

@jaredonline
Created November 17, 2014 16:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaredonline/89e5d9ab5787981f45ae to your computer and use it in GitHub Desktop.
Save jaredonline/89e5d9ab5787981f45ae to your computer and use it in GitHub Desktop.
Compiling dwemthys v0.0.1 (file:///Users/jmcfarland/code/rust/dwemthys)
/Users/jmcfarland/code/rust/dwemthys/src/actor.rs:22:18: 22:53 error: cannot infer an appropriate lifetime for autoref due to conflicting requirements
/Users/jmcfarland/code/rust/dwemthys/src/actor.rs:22 let mc = self.movement_component.box_clone();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jmcfarland/code/rust/dwemthys/src/actor.rs:22:18: 22:41 note: first, the lifetime cannot outlive the expression at 22:17...
/Users/jmcfarland/code/rust/dwemthys/src/actor.rs:22 let mc = self.movement_component.box_clone();
^~~~~~~~~~~~~~~~~~~~~~~
/Users/jmcfarland/code/rust/dwemthys/src/actor.rs:22:18: 22:41 note: ...so that auto-reference is valid at the time of borrow
/Users/jmcfarland/code/rust/dwemthys/src/actor.rs:22 let mc = self.movement_component.box_clone();
^~~~~~~~~~~~~~~~~~~~~~~
/Users/jmcfarland/code/rust/dwemthys/src/actor.rs:22:18: 22:53 note: but, the lifetime must be valid for the method call at 22:17...
/Users/jmcfarland/code/rust/dwemthys/src/actor.rs:22 let mc = self.movement_component.box_clone();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/jmcfarland/code/rust/dwemthys/src/actor.rs:22:18: 22:41 note: ...so that method receiver is valid for the method call
/Users/jmcfarland/code/rust/dwemthys/src/actor.rs:22 let mc = self.movement_component.box_clone();
^~~~~~~~~~~~~~~~~~~~~~~
error: aborting due to previous error
Could not compile `dwemthys`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment