1▶This error indicates that the compiler cannot guarantee a matching pattern for
2one or more possible inputs to a match expression. Guaranteed matches are
3required in order to assign values to match expressions, or alternatively,
· · ·
14let x = Terminator::HastaLaVistaBaby;
15
16▶match x { // error: non-exhaustive patterns: `HastaLaVistaBaby` not covered
17 Terminator::TalkToMyHand => {}
18}
· · ·
19```
20
21▶If you encounter this error you must alter your patterns so that every possible
22value of the input type is matched. For types with a small number of variants
23(like enums) you should probably cover all cases explicitly. Alternatively, the