summary refs log tree commit diff
path: root/src/test/ui/threads-sendsync
diff options
context:
space:
mode:
authorKonrad Borowski <konrad@borowski.pw>2019-01-17 00:07:22 +0100
committerKonrad Borowski <konrad@borowski.pw>2020-01-18 18:50:10 +0100
commitd7a18f89864a4360230e3cbbdcbf22d9864a86e0 (patch)
tree8f20ee02b75035a84dd450e0424d97a9a7b9ec71 /src/test/ui/threads-sendsync
parenta70b24018936fe59f0a037adfa13f2255d8aa5d2 (diff)
downloadrust-d7a18f89864a4360230e3cbbdcbf22d9864a86e0.tar.gz
rust-d7a18f89864a4360230e3cbbdcbf22d9864a86e0.zip
Add a test for iter::empty::<*mut i32> being Sync and Send
Diffstat (limited to 'src/test/ui/threads-sendsync')
-rw-r--r--src/test/ui/threads-sendsync/sync-send-iterators-in-libcore.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/test/ui/threads-sendsync/sync-send-iterators-in-libcore.rs b/src/test/ui/threads-sendsync/sync-send-iterators-in-libcore.rs
index 44beb9dc1e5..2f6d35f01be 100644
--- a/src/test/ui/threads-sendsync/sync-send-iterators-in-libcore.rs
+++ b/src/test/ui/threads-sendsync/sync-send-iterators-in-libcore.rs
@@ -88,6 +88,7 @@ fn main() {
     is_sync_send!((1..));
     is_sync_send!(repeat(1));
     is_sync_send!(empty::<usize>());
+    is_sync_send!(empty::<*mut i32>());
     is_sync_send!(once(1));
 
     // for option.rs