rustc-dev-guide/src/pat-exhaustive-checking.md

245 B

Pattern and Exhaustiveness Checking

In Rust, pattern matching and bindings have a few very helpful properties. The compiler will check that bindings are irrefutable when made and that match arms are exhaustive.

TODO: write this chapter.