Created
June 25, 2015 02:53
-
-
Save sebglazebrook/7a111bee137a9d50a124 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
fn main() { | |
let monitors = monitor_factory::create_all(); | |
for monitor in monitors.iter() { | |
let current_monitor = monitor.clone(); | |
thread::spawn(move || { | |
current_monitor.run(); | |
}).join(); | |
} | |
} | |
// src/main.rs:13:20: 13:28 error: `monitors` does not live long enough | |
// src/main.rs:13 for monitor in monitors.iter() { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment