Skip to content

Instantly share code, notes, and snippets.

@eknowlton
Last active August 24, 2019 18:27
Show Gist options
  • Save eknowlton/57a0054f57f2dc01aa385bacd9109bb2 to your computer and use it in GitHub Desktop.
Save eknowlton/57a0054f57f2dc01aa385bacd9109bb2 to your computer and use it in GitHub Desktop.
ima.rs error
Compiling actionmailbox-imap v0.1.0 (/home/ethan/projects/actionmailbox-imap-client)
error[E0597]: `messages` does not live long enough
--> src/main.rs:153:33
|
153 | let message = match messages.iter().next() {
| ^^^^^^^^-------
| |
| borrowed value does not live long enough
| argument requires that `messages` is borrowed for `'static`
...
226 | }
| - `messages` dropped here while still borrowed
error: aborting due to previous error
For more information about this error, try `rustc --explain E0597`.
error: Could not compile `actionmailbox-imap`.
To learn more, run the command again with --verbose.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment