Created
November 19, 2014 07:14
-
-
Save willcrichton/3e89f92ceec1db084b1a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/Users/will/Code/git/gpe/src/compress.rs:72:33: 72:37 error: cannot infer an appropriate lifetime due to conflicting requirements | |
/Users/will/Code/git/gpe/src/compress.rs:72 let self_ref = Arc::new(self); | |
^~~~ | |
/Users/will/Code/git/gpe/src/compress.rs:55:66: 91:6 note: first, the lifetime cannot outlive the anonymous lifetime #1 defined on the block at 55:65... | |
/Users/will/Code/git/gpe/src/compress.rs:55 fn mutate(&self, population: Vec<Encoding>) -> Vec<Encoding> { | |
/Users/will/Code/git/gpe/src/compress.rs:56 let mut new_population = Vec::new(); | |
/Users/will/Code/git/gpe/src/compress.rs:57 for candidate in population.into_iter() { | |
/Users/will/Code/git/gpe/src/compress.rs:58 for _ in range(0, constants::MUTATIONS) { | |
/Users/will/Code/git/gpe/src/compress.rs:59 new_population.push(Some(candidate.clone())); | |
/Users/will/Code/git/gpe/src/compress.rs:60 } | |
... | |
/Users/will/Code/git/gpe/src/compress.rs:72:33: 72:37 note: ...so that expression is assignable (expected `&compress::Compressor`, found `&compress::Compressor`) | |
/Users/will/Code/git/gpe/src/compress.rs:72 let self_ref = Arc::new(self); | |
^~~~ | |
note: but, the lifetime must be valid for the static lifetime... | |
/Users/will/Code/git/gpe/src/compress.rs:72:24: 72:32 note: ...so that the parameter `<generic #0>`, when instantiated with `&compress::Compressor`, will meet its declared lifetime bounds. | |
/Users/will/Code/git/gpe/src/compress.rs:72 let self_ref = Arc::new(self); | |
^~~~~~~~ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment