Skip to content

Instantly share code, notes, and snippets.

@durka
Created July 28, 2017 21:22
Show Gist options
  • Save durka/7d32673e6140d432f4cbf1fe4161567d to your computer and use it in GitHub Desktop.
Save durka/7d32673e6140d432f4cbf1fe4161567d to your computer and use it in GitHub Desktop.
error: `matches` does not live long enough
--> src/bin/transfer.rs:89:16
|
89 | let dest = matches.value_of("DEST").unwrap();
| ^^^^^^^ does not live long enough
...
214 | }
| - borrowed value only lives until here
|
= note: borrowed value must be valid for the static lifetime...
error: aborting due to previous error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment