Add a test that checks that EventsLoopProxy impls Send

This commit is contained in:
mitchmindtree 2017-05-25 23:18:56 +10:00
parent 06a5ec35b3
commit c8e791b402
2 changed files with 8 additions and 9 deletions

View file

@ -0,0 +1,8 @@
extern crate winit;
#[test]
fn events_loop_proxy_send() {
// ensures that `winit::EventsLoopProxy` implements `Send`
fn needs_send<T:Send>() {}
needs_send::<winit::EventsLoopProxy>();
}

View file

@ -1,9 +0,0 @@
extern crate winit;
#[cfg(feature = "window")]
#[test]
fn window_proxy_send() {
// ensures that `winit::WindowProxy` implements `Send`
fn needs_send<T:Send>() {}
needs_send::<winit::WindowProxy>();
}