1 Pattern arm did not match expected kind.
3 Erroneous code example:
11 fn print_on_failure(state: &State) {
13 // error: expected unit struct, unit variant or constant, found tuple
14 // variant `State::Failed`
15 State::Failed => println!("Failed"),
21 To fix this error, ensure the match arm kind is the same as the expression
32 fn print_on_failure(state: &State) {
34 State::Failed(ref msg) => println!("Failed with {}", msg),