From c4a5f7151b9b4bbb380faa06ec27415235d1bf7e Mon Sep 17 00:00:00 2001 From: Sebastian Urban Date: Sun, 26 Nov 2023 20:32:07 +0100 Subject: [PATCH] Assert that native Context is Send+Sync. --- src/native.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/native.rs b/src/native.rs index 22bb16f..33c8995 100644 --- a/src/native.rs +++ b/src/native.rs @@ -3218,3 +3218,20 @@ extern "system" fn raw_debug_message_callback( (callback)(source, gltype, id, severity, msg); }); } + +#[cfg(test)] +mod tests { + use super::*; + + #[test] + fn test_send() { + fn assert_send() {} + assert_send::(); + } + + #[test] + fn test_sync() { + fn assert_sync() {} + assert_sync::(); + } +}