diff options
Diffstat (limited to 'src/test/ui/issues/issue-21291.rs')
-rw-r--r-- | src/test/ui/issues/issue-21291.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-21291.rs b/src/test/ui/issues/issue-21291.rs new file mode 100644 index 000000000..b351e22d8 --- /dev/null +++ b/src/test/ui/issues/issue-21291.rs @@ -0,0 +1,10 @@ +// run-pass +// ignore-emscripten no threads support + +// Regression test for unwrapping the result of `join`, issue #21291 + +use std::thread; + +fn main() { + thread::spawn(|| {}).join().unwrap() +} |