mirror of https://github.com/rust-lang/nomicon
The first example shows that you "can't violate memory safety with safe Rust" and the second example shows that you "can violate memory safety with unsafe Rust". The second example does not demonstrate a data race since there is only one thread touching `data`.pull/470/head
parent
0674321898
commit
6855d3a7e1
Loading…
Reference in new issue