mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-28 01:34:21 +00:00
Test mutex locking
This commit is contained in:
parent
62166ed9c8
commit
2f0093b8c2
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user