rough-minister-58256
03/28/2017, 4:22 AMerror[E0495]: cannot infer an appropriate lifetime for autoref due to conflicting requirements
--> src/rust/engine/src/fs.rs:816:26
|
816 | let temp_path = self.next_temp_path().expect("Couldnt get the next temp path.");
| ^^^^^^^^^^^^^^
|
note: first, the lifetime cannot outlive the anonymous lifetime #1 defined on the body at 813:90...
--> src/rust/engine/src/fs.rs:813:91
|
813 | pub fn create(&self, fs: &PosixFS, paths: Vec<PathStat>) -> CpuFuture<Snapshot, String> {
| ^
note: ...so that reference does not outlive borrowed content
--> src/rust/engine/src/fs.rs:816:21
|
816 | let temp_path = self.next_temp_path().expect("Couldnt get the next temp path.");
| ^^^^
= note: but, the lifetime must be valid for the static lifetime...
note: ...so that the type `[closure@src/rust/engine/src/fs.rs:818:24: 835:6 temp_path:&std::path::Path, paths:std::vec::Vec<fs::PathStat>, build_root:fs::Dir, dest_dir:std::path::PathBuf]` will meet its required lifetime bounds
--> src/rust/engine/src/fs.rs:818:15
|
818 | fs.pool().spawn_fn(move || {
| ^^^^^^^^