Skip to content

Commit a892791

Browse files
Update tests/fail-dep/concurrency/libc_pthread_mutex_move.rs
Co-authored-by: Ralf Jung <[email protected]>
1 parent cd4c3e3 commit a892791

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/fail-dep/concurrency/libc_pthread_mutex_move.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ fn check() {
1111
let mut m: libc::pthread_mutex_t = std::mem::zeroed();
1212
assert_eq!(libc::pthread_mutex_init(&mut m as *mut _, std::ptr::null()), 0);
1313

14-
let mut m2 = m;
14+
let mut m2 = m; // move the mutex
1515
libc::pthread_mutex_lock(&mut m2 as *mut _); //~[init] ERROR: pthread_mutex_t can't be moved after first use
1616
}
1717
}

0 commit comments

Comments
 (0)