Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 2f0093b

Browse files
committed
Test mutex locking
1 parent 62166ed commit 2f0093b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

example/std_example.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ use std::intrinsics;
66

77

88
fn main() {
9+
let mutex = std::sync::Mutex::new(());
10+
mutex.lock().unwrap();
11+
912
let _ = ::std::iter::repeat('a' as u8).take(10).collect::<Vec<_>>();
1013
let stderr = ::std::io::stderr();
1114
let mut stderr = stderr.lock();

0 commit comments

Comments
 (0)