2 ms·
And just as in the OP, the compiler makes it clear that this unsafe block does nothing: warning: unnecessary `unsafe` block --> src/main.rs:4:3
by kibwen 8y ago
And just as in the OP, the compiler makes it clear that this unsafe block does nothing:
warning: unnecessary `unsafe` block
--> src/main.rs:4:3
|
4 | unsafe { myvec[0]; }
| ^^^^^^ unnecessary `unsafe` block
|