aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPierre Krieger <pierre.krieger1708@gmail.com>2015-02-16 10:29:53 +0100
committerPierre Krieger <pierre.krieger1708@gmail.com>2015-02-16 10:29:53 +0100
commit297a8cbb1d0849fc3ce518c96e07b6d7a1e2f623 (patch)
treea5dabba36f4d4829b442c1cb366ad412c73cbe22
parentcd155ce8ea5a90c973ab5a421116ceb5e819b3e2 (diff)
downloadglutin-297a8cbb1d0849fc3ce518c96e07b6d7a1e2f623.tar.gz
glutin-297a8cbb1d0849fc3ce518c96e07b6d7a1e2f623.zip
Add test for WindowProxy to implement Send
-rw-r--r--tests/window_proxy_send.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/window_proxy_send.rs b/tests/window_proxy_send.rs
new file mode 100644
index 0000000..559e7fe
--- /dev/null
+++ b/tests/window_proxy_send.rs
@@ -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>();
+}