mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-23 22:01:31 +11:00
Add a test that checks that EventsLoopProxy impls Send
This commit is contained in:
parent
06a5ec35b3
commit
c8e791b402
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>();
|
||||
}
|
Loading…
Reference in a new issue