oden/third-party/vendor/winit/tests/sync_object.rs
2024-03-08 11:03:01 -08:00

9 lines
202 B
Rust

#[allow(dead_code)]
fn needs_sync<T: Sync>() {}
#[cfg(not(wasm_platform))]
#[test]
fn window_sync() {
// ensures that `winit::Window` implements `Sync`
needs_sync::<winit::window::Window>();
}