Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. error[E0623]: lifetime mismatch
  2. --> src/main.rs:129:29
  3. |
  4. 72 | fn master_function(font_path: &Path, mut sdl_master: &mut SDLMasterVars, mut gridvec_obj: &mut Gridvec, mut gridvars: &mut GridMasterVars, mut iface: &mut Interface) -> Result<(), String> {
  5. | ------------
  6. | |
  7. | these two types are declared with different lifetimes...
  8. ...
  9. 129 | change_gridunit_texture(&mut gridvec_obj, &mut sdl_master, 2, 2, Color::RGBA(255, 0, 0, 255));
  10. | ^^^^^^^^^^^^^^^^ ...but data from `gridvec_obj` flows into `gridvec_obj` here
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement