mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2025-01-10 05:01:31 +11:00
tests: don't instanciate an event loop to check EventsLoop: Send+Sync
This commit is contained in:
parent
624a422f20
commit
e6e96ab6f4
|
@ -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);
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue