Add test for Send + Sync

This commit is contained in:
root
2015-05-19 18:18:41 +02:00
parent 311ab8916c
commit 4ac4a0bbee
+7
View File
@@ -442,3 +442,10 @@ fn test_extend() {
array.extend(3..5);
assert_eq!(&array[..], &[0, 1, 2, 3, 4]);
}
#[test]
fn test_is_send_sync() {
let data = ArrayVec::<[Vec<i32>; 5]>::new();
&data as &Send;
&data as &Sync;
}