Note that multiple threads are not needed to show UB, although in a single-thread context it is a bit more involved. See for example Rust Playground
2 Likes
Note that multiple threads are not needed to show UB, although in a single-thread context it is a bit more involved. See for example Rust Playground