Never patterns, exhaustive matching, and uninhabited types (oh my!)

from blog baby steps, | ↗ original
One of the long-standing issues that we’ve been wrestling with in Rust is how to integrate the concept of an “uninhabited type” – that is, a type which has no values at all. Uninhabited types are useful to represent the “result” of some computation you know will never execute – for example, if you have to define an error type for some...