Quince/vendor/winit/tests/sync_object.rs
astar76 7a4266b034 Quince: a Material You video player on mpv
libmpv render API into an egui/glow texture, floating controls with a wavy
seek bar and morphing play button, track/speed/chapter menus, playlist and
adjust sheets, settings, open link, previews, smoke-test harness.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-26 17:56:15 -06:00

28 lines
652 B
Rust

#[allow(dead_code)]
fn needs_sync<T: Sync>() {}
#[test]
fn event_loop_proxy_send() {
#[allow(dead_code)]
fn is_send<T: 'static + Send>() {
// ensures that `winit::EventLoopProxy<T: Send>` implements `Sync`
needs_sync::<winit::event_loop::EventLoopProxy<T>>();
}
}
#[test]
fn window_sync() {
// ensures that `winit::Window` implements `Sync`
needs_sync::<winit::window::Window>();
}
#[test]
fn window_builder_sync() {
needs_sync::<winit::window::WindowAttributes>();
}
#[test]
fn custom_cursor_sync() {
needs_sync::<winit::window::CustomCursorSource>();
needs_sync::<winit::window::CustomCursor>();
}