]> git.lizzy.rs Git - rust.git/blobdiff - library/core/tests/slice.rs
Rollup merge of #100520 - jakubdabek:patch-1, r=thomcc
[rust.git] / library / core / tests / slice.rs
index 0656109e9db8892db2878b13fa509eb7a3876959..b8f6fe6961a8edbac5fd821d1146e47a665bdde9 100644 (file)
@@ -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,
@@ -1210,6 +1209,8 @@ fn assert_send_and_sync()
         RChunksExactMut<'static, MutexGuard<'static, u32>>: Sync,
     {
     }
+
+    assert_send_and_sync();
 }
 
 #[test]