Tom Dohrmann hace 3 años
padre
commit
e42a898494
Se han modificado 1 ficheros con 12 adiciones y 0 borrados
  1. 12 0
      aml/src/lib.rs

+ 12 - 0
aml/src/lib.rs

@@ -791,3 +791,15 @@ pub enum AmlError {
     FieldInvalidAccessSize,
     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>();
+    }
+}