mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-29 04:40:04 -04:00
tests: don't instanciate an event loop to check EventsLoop: Send+Sync
This commit is contained in:
@@ -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: Send + Sync>(_: T) {}
|
||||
let events_loop = winit::EventsLoop::new();
|
||||
check_send_sync(events_loop);
|
||||
fn check_send_sync<T: Send + Sync>() {}
|
||||
check_send_sync::<winit::EventsLoop>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user