diff --git a/tests/events_loop.rs b/tests/events_loop.rs index 4623b80e..85b3bb6b 100644 --- a/tests/events_loop.rs +++ b/tests/events_loop.rs @@ -5,7 +5,6 @@ extern crate winit; // This short test will only compile if the `EventsLoop` is `Send` + `Sync`. #[test] fn send_sync() { - fn check_send_sync(_: T) {} - let events_loop = winit::EventsLoop::new(); - check_send_sync(events_loop); + fn check_send_sync() {} + check_send_sync::(); }