mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 23:12:02 +00:00
13 lines
393 B
Rust
13 lines
393 B
Rust
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)`
|
|
//~| NOTE `&str` cannot be matched exhaustively, so a wildcard `_` is necessary
|
|
("a", "b") => {}
|
|
("c", "d") => {}
|
|
}
|
|
}
|