winit-sonoma-fix/tests/sync_object.rs
Amr Bashir 5e77d70245
Use cfg aliases throught the code base
Co-authored-by: Mads Marquart <mads@marquart.dk>
2022-12-25 10:57:27 +03:00

10 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>();
}