Test mutex locking

This commit is contained in:
bjorn3 2019-03-30 18:22:43 +01:00
parent 62166ed9c8
commit 2f0093b8c2

View File

@ -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::<Vec<_>>();
let stderr = ::std::io::stderr();
let mut stderr = stderr.lock();