mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-25 23:01:30 +11:00
24 lines
516 B
Rust
24 lines
516 B
Rust
|
extern crate winit;
|
||
|
|
||
|
fn needs_send<T:Send>() {}
|
||
|
|
||
|
#[test]
|
||
|
fn events_loop_proxy_send() {
|
||
|
// ensures that `winit::EventsLoopProxy` implements `Send`
|
||
|
needs_send::<winit::EventsLoopProxy>();
|
||
|
}
|
||
|
|
||
|
#[test]
|
||
|
fn window_send() {
|
||
|
// ensures that `winit::Window` implements `Send`
|
||
|
needs_send::<winit::Window>();
|
||
|
}
|
||
|
|
||
|
#[test]
|
||
|
fn ids_send() {
|
||
|
// ensures that the various `..Id` types implement `Send`
|
||
|
needs_send::<winit::WindowId>();
|
||
|
needs_send::<winit::DeviceId>();
|
||
|
needs_send::<winit::MonitorId>();
|
||
|
}
|