]> git.lizzy.rs Git - rust.git/blob - tests/ui/process-termination/process-termination-simple.rs
Account for method call and indexing when looking for inner-most path in expression
[rust.git] / tests / ui / process-termination / process-termination-simple.rs
1 // program should terminate when std::process::exit is called from any thread
2
3 // run-pass
4 // ignore-emscripten no threads support
5
6 use std::{process, thread};
7
8 fn main() {
9     let h = thread::spawn(|| {
10         process::exit(0);
11     });
12     let _ = h.join();
13 }