Lesson 38 of 50
rustUnsafe Rust
15 minutes
Course progress76%
Unsafe Rust
unsafe blocks allow you to perform operations the compiler cannot guarantee safety for, such as dereferencing raw pointers.
fn main() {
let mut num = 5;
let r1 = &num as * ;
= & num * ;
{
(\