Skip to content

Glossary: Rust Basics

Dangling reference

Also written: dangling references

A reference that points at a value that has already been dropped. Rust refuses to compile code that would create one.

Where the book teaches it

Related terms

ReferenceLifetimeDrop