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

raw pointer

A pointer with no borrow checking: it may be null, dangling, or aliased.

*const T and *mut T are raw pointers; creating them is safe, dereferencing them requires unsafe and that they be valid, aligned, and not violate aliasing.

Loading interactive…

Examples

  • let p = &raw const pot; needs no unsafe, but reading *p outside an unsafe block fails with E0133 (dereference of raw pointer).

Read the full section →