rust/tests/ui/threads-sendsync/thread-join-unwrap.rs
reddevilmidzy 1bd997a452 Cleaned up some tests
Split invalid-compile-flags into run-pass & invalid

Update tests/ui/README.md
2025-12-16 02:10:08 +09:00

9 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()
}