Rust Compile Errors
ActivePublic

Authored by bcs on Sep 26 2016, 12:00 AM.
src/remotefs.rs:32:5: 32:18 error: the parameter type `F` may not live long enough [E0310]
src/remotefs.rs:32 thread::spawn(move || {
^~~~~~~~~~~~~
src/remotefs.rs:32:5: 32:18 help: run `rustc --explain E0310` to see a detailed explanation
src/remotefs.rs:32:5: 32:18 help: consider adding an explicit lifetime bound `F: 'static`...
src/remotefs.rs:32:5: 32:18 note: ...so that the type `[closure@src/remotefs.rs:32:19: 36:6 ch:std::sync::mpsc::Receiver<remotefs::Task<F>>, results_ch:std::sync::mpsc::SyncSender<std::result::Result<R, std::string::String>>]` will meet its required lifetime bounds
src/remotefs.rs:32 thread::spawn(move || {
^~~~~~~~~~~~~
src/remotefs.rs:32:5: 32:18 error: the parameter type `R` may not live long enough [E0310]
src/remotefs.rs:32 thread::spawn(move || {
^~~~~~~~~~~~~
src/remotefs.rs:32:5: 32:18 help: run `rustc --explain E0310` to see a detailed explanation
src/remotefs.rs:32:5: 32:18 help: consider adding an explicit lifetime bound `R: 'static`...
src/remotefs.rs:32:5: 32:18 note: ...so that the type `[closure@src/remotefs.rs:32:19: 36:6 ch:std::sync::mpsc::Receiver<remotefs::Task<F>>, results_ch:std::sync::mpsc::SyncSender<std::result::Result<R, std::string::String>>]` will meet its required lifetime bounds
src/remotefs.rs:32 thread::spawn(move || {
^~~~~~~~~~~~~
error: aborting due to 2 previous errors
error: Could not compile `drive`.
bcs created this paste.Sep 26 2016, 12:00 AM