Skip to content

Instantly share code, notes, and snippets.

@rbuckland
Created August 1, 2018 11:30
Show Gist options
  • Save rbuckland/40cd5e93685fb1b8761c8de91219a25b to your computer and use it in GitHub Desktop.
Save rbuckland/40cd5e93685fb1b8761c8de91219a25b to your computer and use it in GitHub Desktop.
21:05 $ cargo build
Compiling markdown_tools v0.4.0 (file:///home/rbuckland/projects/internal/github.com/inosion/markdown-tools)
error[E0597]: `vfilts` does not live long enough====================> ] 70/72: markdown_tools
--> src/lib.rs:126:82
|
126 | Some(vfilts) => Box::new(data.iter().filter(|row| filter_tablerows(row, &vfilts))),
| ----- capture occurs here ^^^^^^ borrowed value does not live long enough
127 | };
| - borrowed value only lives until here
...
144 | }
| - borrowed value needs to live until here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment