winit-sonoma-fix/tests/sync_object.rs

9 lines
175 B
Rust

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