mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-26 22:53:15 -04:00
24 lines
562 B
Rust
24 lines
562 B
Rust
extern crate winit;
|
|
|
|
fn needs_send<T:Send>() {}
|
|
|
|
#[test]
|
|
fn events_loop_proxy_send() {
|
|
// ensures that `winit::EventLoopProxy` implements `Send`
|
|
needs_send::<winit::event_loop::EventLoopProxy<()>>();
|
|
}
|
|
|
|
#[test]
|
|
fn window_send() {
|
|
// ensures that `winit::Window` implements `Send`
|
|
needs_send::<winit::window::Window>();
|
|
}
|
|
|
|
#[test]
|
|
fn ids_send() {
|
|
// ensures that the various `..Id` types implement `Send`
|
|
needs_send::<winit::window::WindowId>();
|
|
needs_send::<winit::event::DeviceId>();
|
|
needs_send::<winit::monitor::MonitorId>();
|
|
}
|