Tom Dohrmann 4 年之前
父节点
当前提交
e42a898494
共有 1 个文件被更改,包括 12 次插入0 次删除
  1. 12 0
      aml/src/lib.rs

+ 12 - 0
aml/src/lib.rs

@@ -791,3 +791,15 @@ pub enum AmlError {
     FieldInvalidAccessSize,
     FieldInvalidAccessSize,
     TypeCannotBeCompared(AmlType),
     TypeCannotBeCompared(AmlType),
 }
 }
+
+#[cfg(test)]
+mod tests {
+    use super::*;
+
+    #[test]
+    fn test_send_sync() {
+        // verify that AmlContext implements Send and Sync
+        fn test_send_sync<T: Send + Sync>() {}
+        test_send_sync::<AmlContext>();
+    }
+}