Clarify comment in tests/fail/tree_borrows/reservedim_spurious_write.rs
Co-authored-by: Ralf Jung <post@ralfj.de>
This commit is contained in:
parent
68aed4a5ce
commit
78f6386b62
1 changed files with 3 additions and 2 deletions
|
|
@ -41,8 +41,9 @@ macro_rules! synchronized {
|
|||
}
|
||||
|
||||
fn main() {
|
||||
// The conflict occurs one one single location but the example involves
|
||||
// lazily initialized permissions.
|
||||
// The conflict occurs on one single location but the example involves
|
||||
// lazily initialized permissions. We will use `&mut Cell<()>` references
|
||||
// to `data` to achieve this.
|
||||
let mut data = 0u8;
|
||||
let ptr = SendPtr(std::ptr::addr_of_mut!(data));
|
||||
let barrier = Arc::new(Barrier::new(2));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue