about summary refs log tree commit diff
path: root/tests/ui/issues/issue-22864-2.rs
blob: d98dbeda46b5d049a61cb82dfe7272e1feeb5303 (plain)
1
2
3
4
5
6
7
//@ run-pass
//@ needs-threads

pub fn main() {
    let f = || || 0;
    std::thread::spawn(f());
}