#[allow(dead_code)] fn needs_send() {} #[test] fn event_loop_proxy_send() { #[allow(dead_code)] fn is_send() { // ensures that `winit::EventLoopProxy` implements `Send` needs_send::>(); } } #[test] fn window_send() { // ensures that `winit::Window` implements `Send` needs_send::(); } #[test] fn window_builder_send() { needs_send::(); } #[test] fn ids_send() { // ensures that the various `..Id` types implement `Send` needs_send::(); needs_send::(); needs_send::(); } #[test] fn custom_cursor_send() { needs_send::(); needs_send::(); }