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 cd4c3e3 commit a892791
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 @@ -11,7 +11,7 @@ fn check() {
let mut m: libc::pthread_mutex_t = std::mem::zeroed();
assert_eq!(libc::pthread_mutex_init(&mut m as *mut _, std::ptr::null()), 0);

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

0 comments on commit a892791

Please sign in to comment.