2017-02-05 12:51:09 +11:00
|
|
|
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() {
|
2017-03-04 08:21:30 +01:00
|
|
|
fn check_send_sync<T: Send + Sync>() {}
|
|
|
|
|
check_send_sync::<winit::EventsLoop>();
|
2017-02-05 12:51:09 +11:00
|
|
|
}
|