---
title: "How to Panic in Rust"
categories: rust
+forum: https://internals.rust-lang.org/t/how-to-panic-in-rust/11368
---
-What exactly happens when you write `panic!()`?
+What exactly happens when you `panic!()`?
I recently spent a lot of time looking at the parts of the standard library concerned with this, and it turns out the answer is quite complicated!
I have not been able to find docs explaining the high-level picture of panicking in Rust, so this feels worth writing down.