winit-sonoma-fix/tests/events_loop.rs

12 lines
340 B
Rust
Raw Normal View History

extern crate winit;
// A part of the API requirement for `EventsLoop` is that it is `Send` + `Sync`.
//
// This short test will only compile if the `EventsLoop` is `Send` + `Sync`.
#[test]
fn send_sync() {
fn check_send_sync<T: Send + Sync>(_: T) {}
let events_loop = winit::EventsLoop::new();
check_send_sync(events_loop);
}