diff options
Diffstat (limited to 'tests/ui/threads-sendsync/task-comm-17.rs')
-rw-r--r-- | tests/ui/threads-sendsync/task-comm-17.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/ui/threads-sendsync/task-comm-17.rs b/tests/ui/threads-sendsync/task-comm-17.rs new file mode 100644 index 000000000..722497870 --- /dev/null +++ b/tests/ui/threads-sendsync/task-comm-17.rs @@ -0,0 +1,17 @@ +// run-pass +#![allow(unused_must_use)] +// ignore-emscripten no threads support +// pretty-expanded FIXME #23616 + +// Issue #922 + +// This test is specifically about spawning temporary closures. + +use std::thread; + +fn f() { +} + +pub fn main() { + thread::spawn(move|| f() ).join(); +} |