mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
5e77d70245
Co-authored-by: Mads Marquart <mads@marquart.dk>
10 lines
202 B
Rust
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>();
|
|
}
|