mirror of
https://github.com/rust-windowing/winit.git
synced 2026-09-02 06:40:06 -04:00
Merge pull request #278 from tomaka/window-proxy-send
Add test for WindowProxy to implement Send
This commit is contained in:
9
tests/window_proxy_send.rs
Normal file
9
tests/window_proxy_send.rs
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
extern crate glutin;
|
||||||
|
|
||||||
|
#[cfg(feature = "window")]
|
||||||
|
#[test]
|
||||||
|
fn window_proxy_send() {
|
||||||
|
// ensures that `glutin::WindowProxy` implements `Send`
|
||||||
|
fn needs_send<T:Send>() {}
|
||||||
|
needs_send::<glutin::WindowProxy>();
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user