#[allow(dead_code)] fn needs_sync() {} #[test] fn event_loop_proxy_send() { #[allow(dead_code)] fn is_send() { // ensures that `winit::EventLoopProxy` implements `Sync` needs_sync::>(); } } #[test] fn window_sync() { // ensures that `winit::Window` implements `Sync` needs_sync::(); } #[test] fn window_builder_sync() { needs_sync::(); } #[test] fn custom_cursor_sync() { needs_sync::(); needs_sync::(); }