rust/tests/ui/std/thread-sleep-ms.rs
许杰友 Jieyou Xu (Joe) e00e10c943 tests: cleanup tests/ui/std/thread-sleep-ms.rs
- Use `needs-threads` instead of `ignore-sgx`.
- Remove unnecessary import and `#![allow(unused_import)]`.
2025-01-23 20:51:29 +08:00

10 lines
157 B
Rust

//@ run-pass
//@ needs-threads
//@ ignore-emscripten (FIXME: test hangs on emscripten)
#![allow(deprecated)]
fn main() {
std::thread::sleep_ms(250);
}