Skip to content

Glossary: Rust in Practice

dangling pointer

Also written: dangling

A pointer to memory that has already been freed, for example after the `Vec` it pointed into was dropped. Reading through it is undefined behavior.

Where the book teaches it

Related terms

raw pointernull pointerundefined behavior