mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
1bd997a452
Split invalid-compile-flags into run-pass & invalid Update tests/ui/README.md
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()
|
|
}
|