Add test for Send + Sync
This commit is contained in:
@@ -442,3 +442,10 @@ fn test_extend() {
|
|||||||
array.extend(3..5);
|
array.extend(3..5);
|
||||||
assert_eq!(&array[..], &[0, 1, 2, 3, 4]);
|
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;
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user