Skip to content

Commit cd4c3e3

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

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
@@ -22,7 +22,7 @@ fn check() {
2222
let mut m: libc::pthread_mutex_t = libc::PTHREAD_MUTEX_INITIALIZER;
2323
libc::pthread_mutex_lock(&mut m as *mut _);
2424

25-
let mut m2 = m;
25+
let mut m2 = m; // move the mutex
2626
libc::pthread_mutex_unlock(&mut m2 as *mut _); //~[static_initializer] ERROR: pthread_mutex_t can't be moved after first use
2727
}
2828
}

0 commit comments

Comments
 (0)