Skip to content

Commit

Permalink
Update tests/fail-dep/concurrency/libc_pthread_mutex_move.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Ralf Jung <post@ralfj.de>
  • Loading branch information
Mandragorian and RalfJung authored Sep 5, 2024
1 parent 5dad33a commit cd4c3e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/fail-dep/concurrency/libc_pthread_mutex_move.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ fn check() {
let mut m: libc::pthread_mutex_t = libc::PTHREAD_MUTEX_INITIALIZER;
libc::pthread_mutex_lock(&mut m as *mut _);

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

0 comments on commit cd4c3e3

Please sign in to comment.