From 2f0093b8c2f44f560dd51b26ac1c6bb902513ec7 Mon Sep 17 00:00:00 2001 From: bjorn3 Date: Sat, 30 Mar 2019 18:22:43 +0100 Subject: [PATCH] Test mutex locking --- example/std_example.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/example/std_example.rs b/example/std_example.rs index e28da13e4c8..63227acc4bd 100644 --- a/example/std_example.rs +++ b/example/std_example.rs @@ -6,6 +6,9 @@ use std::intrinsics; fn main() { + let mutex = std::sync::Mutex::new(()); + mutex.lock().unwrap(); + let _ = ::std::iter::repeat('a' as u8).take(10).collect::>(); let stderr = ::std::io::stderr(); let mut stderr = stderr.lock();