Created
July 16, 2017 22:36
-
-
Save kinggoesgaming/41f2223888b538abb3b5bcad1dadaf6f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Compiling ore v0.1.0 (file:///home/kgg_dev/src/ore) | |
error[E0501]: cannot borrow `self.data` as immutable because previous closure requires unique access | |
--> src/project/mod.rs:70:12 | |
| | |
62 | .and_then(|res| { | |
| ----- closure construction occurs here | |
63 | res.body().concat2().map(|mut body| { | |
64 | self.data = body.to_vec(); | |
| ---- previous borrow occurs due to use of `self` in closure | |
... | |
70 | Ok(self.data.as_slice()) | |
| ^^^^^^^^^ borrow occurs here | |
71 | } | |
| - borrow from closure ends here | |
error: aborting due to previous error | |
error[E0501]: cannot borrow `self.data` as immutable because previous closure requires unique access | |
--> src/project/mod.rs:70:12 | |
| | |
62 | .and_then(|res| { | |
| ----- closure construction occurs here | |
63 | res.body().concat2().map(|mut body| { | |
64 | self.data = body.to_vec(); | |
| ---- previous borrow occurs due to use of `self` in closure | |
... | |
70 | Ok(self.data.as_slice()) | |
| ^^^^^^^^^ borrow occurs here | |
71 | } | |
| - borrow from closure ends here | |
error: aborting due to previous error | |
error: Could not compile `ore`. | |
error: build failed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment