Skip to content

Instantly share code, notes, and snippets.

@jaredonline
Created March 21, 2015 23:41
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/c5a58d7ba6762e42e544 to your computer and use it in GitHub Desktop.
Save jaredonline/c5a58d7ba6762e42e544 to your computer and use it in GitHub Desktop.
src/game.rs:110:32: 110:61 error: cannot infer an appropriate lifetime for borrow expression due to conflicting requirements
src/game.rs:110 self.game_state.render(&mut self.rendering_component, &mut self.maps, &mut self.windows);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/game.rs:110:32: 110:61 note: first, the lifetime cannot outlive the expression at 110:31...
src/game.rs:110 self.game_state.render(&mut self.rendering_component, &mut self.maps, &mut self.windows);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/game.rs:110:32: 110:61 note: ...so that reference is valid at the time of borrow
src/game.rs:110 self.game_state.render(&mut self.rendering_component, &mut self.maps, &mut self.windows);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/game.rs:110:9: 110:97 note: but, the lifetime must be valid for the method call at 110:8...
src/game.rs:110 self.game_state.render(&mut self.rendering_component, &mut self.maps, &mut self.windows);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/game.rs:110:32: 110:61 note: ...so that argument is valid for the call
src/game.rs:110 self.game_state.render(&mut self.rendering_component, &mut self.maps, &mut self.windows);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment