Part of the point in my post is that this does not remove the bounds check. This unsafe block does nothing.
This actually might be a better example than the one I picked...
warning: unnecessary `unsafe` block --> src/main.rs:4:3 | 4 | unsafe { myvec[0]; } | ^^^^^^ unnecessary `unsafe` block |
Part of the point in my post is that this does not remove the bounds check. This unsafe block does nothing.
This actually might be a better example than the one I picked...