summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-22864-2.rs
blob: 4aa9e3e086b098b6826cb82718f2c6d9b59228a5 (plain)
1
2
3
4
5
6
7
// run-pass
// ignore-emscripten no threads support

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