Skip to content
Free public beta until December 4, 2026: every course is open, no card needed. After that, the first chapter of each course stays free and full access is a one-time $39 ($19 for up to 100 founding members chosen for helpful feedback). Your progress is kept. How the beta works

unsafe block

A block of code where you take on proving some memory rules yourself.

An unsafe block permits five extra operations (dereferencing raw pointers, calling unsafe functions, implementing unsafe traits, accessing mutable statics and union fields); all other checks, including borrow checking, still apply.

Examples

  • chips.get_unchecked(1) outside an unsafe block fails with E0133; inside unsafe { chips.get_unchecked(1) } it compiles and the bounds proof is yours.

Read the full section →