mirror of
https://github.com/rust-windowing/winit.git
synced 2026-06-28 07:33:14 -04:00
Add a test that checks that EventsLoopProxy impls Send
This commit is contained in:
8
tests/events_loop_proxy_send.rs
Normal file
8
tests/events_loop_proxy_send.rs
Normal 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>();
|
||||
}
|
||||
@@ -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>();
|
||||
}
|
||||
Reference in New Issue
Block a user