We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd4c3e3 commit a892791Copy full SHA for a892791
tests/fail-dep/concurrency/libc_pthread_mutex_move.rs
@@ -11,7 +11,7 @@ fn check() {
11
let mut m: libc::pthread_mutex_t = std::mem::zeroed();
12
assert_eq!(libc::pthread_mutex_init(&mut m as *mut _, std::ptr::null()), 0);
13
14
- let mut m2 = m;
+ let mut m2 = m; // move the mutex
15
libc::pthread_mutex_lock(&mut m2 as *mut _); //~[init] ERROR: pthread_mutex_t can't be moved after first use
16
}
17
0 commit comments