tests: don't instanciate an event loop to check EventsLoop: Send+Sync

This commit is contained in:
Victor Berger 2017-03-04 08:21:30 +01:00
parent 624a422f20
commit e6e96ab6f4

View file

@ -5,7 +5,6 @@ extern crate winit;
// This short test will only compile if the `EventsLoop` is `Send` + `Sync`. // This short test will only compile if the `EventsLoop` is `Send` + `Sync`.
#[test] #[test]
fn send_sync() { fn send_sync() {
fn check_send_sync<T: Send + Sync>(_: T) {} fn check_send_sync<T: Send + Sync>() {}
let events_loop = winit::EventsLoop::new(); check_send_sync::<winit::EventsLoop>();
check_send_sync(events_loop);
} }