rust/tests/ui/closures/issue-22864-2.rs
2024-04-21 15:43:43 -03:00

8 lines
100 B
Rust

//@ run-pass
//@ needs-threads
pub fn main() {
let f = || || 0;
std::thread::spawn(f());
}