2023-08-27 07:14:56 -05:00
|
|
|
fn main() {
|
|
|
|
let a = "";
|
|
|
|
let b = "";
|
|
|
|
match (a, b) {
|
|
|
|
//~^ ERROR non-exhaustive patterns: `(&_, _)` not covered [E0004]
|
|
|
|
//~| NOTE pattern `(&_, _)` not covered
|
|
|
|
//~| NOTE the matched value is of type `(&str, &str)`
|
2023-09-03 06:55:11 -05:00
|
|
|
//~| NOTE `&str` cannot be matched exhaustively, so a wildcard `_` is necessary
|
2023-08-27 07:14:56 -05:00
|
|
|
("a", "b") => {}
|
|
|
|
("c", "d") => {}
|
|
|
|
}
|
|
|
|
}
|