Skip to content

Commit

Permalink
actually call assert_send_and_sync
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Aug 3, 2022
1 parent 04f72f9 commit a61c841
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion library/core/tests/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1197,7 +1197,6 @@ fn chunks_mut_are_send_and_sync() {
use std::slice::{ChunksExactMut, ChunksMut, RChunksExactMut, RChunksMut};
use std::sync::MutexGuard;

#[allow(unused)]
fn assert_send_and_sync()
where
ChunksMut<'static, Cell<i32>>: Send,
Expand All @@ -1210,6 +1209,8 @@ fn chunks_mut_are_send_and_sync() {
RChunksExactMut<'static, MutexGuard<'static, u32>>: Sync,
{
}

assert_send_and_sync();
}

#[test]
Expand Down

0 comments on commit a61c841

Please sign in to comment.