mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-01 17:40:16 +00:00
10 lines
215 B
Rust
10 lines
215 B
Rust
//! Regression test for unwrapping the result of `join`, issue https://github.com/rust-lang/rust/issues/21291
|
|
//@ run-pass
|
|
//@ needs-threads
|
|
|
|
use std::thread;
|
|
|
|
fn main() {
|
|
thread::spawn(|| {}).join().unwrap()
|
|
}
|