2019-06-18 02:27:00 +08:00
|
|
|
#[allow(dead_code)]
|
2024-08-23 23:40:27 +03:00
|
|
|
fn needs_sync<T: Sync + ?Sized>() {}
|
2018-04-21 11:53:57 -04:00
|
|
|
|
2024-02-01 14:27:44 +01:00
|
|
|
#[test]
|
|
|
|
|
fn event_loop_proxy_send() {
|
2024-06-24 13:04:55 +03:00
|
|
|
needs_sync::<winit::event_loop::EventLoopProxy>();
|
2024-02-01 14:27:44 +01:00
|
|
|
}
|
|
|
|
|
|
2018-04-21 11:53:57 -04:00
|
|
|
#[test]
|
|
|
|
|
fn window_sync() {
|
2024-08-23 23:40:27 +03:00
|
|
|
needs_sync::<dyn winit::window::Window>();
|
2018-04-21 11:53:57 -04:00
|
|
|
}
|
2023-10-17 04:54:12 +04:00
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
|
fn window_builder_sync() {
|
2024-01-31 17:29:59 +04:00
|
|
|
needs_sync::<winit::window::WindowAttributes>();
|
2023-10-17 04:54:12 +04:00
|
|
|
}
|
2023-12-16 22:02:17 +02:00
|
|
|
|
|
|
|
|
#[test]
|
|
|
|
|
fn custom_cursor_sync() {
|
2025-05-03 18:24:44 +09:00
|
|
|
needs_sync::<winit::cursor::CustomCursorSource>();
|
|
|
|
|
needs_sync::<winit::cursor::CustomCursor>();
|
2023-12-16 22:02:17 +02:00
|
|
|
}
|