mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-11 08:05:12 +00:00
12 lines
163 B
Rust
12 lines
163 B
Rust
|
|
|
|
#![warn(single_match_else)]
|
|
|
|
fn main() {
|
|
let n = match (42, 43) {
|
|
(42, n) => n,
|
|
_ => panic!("typeck error"),
|
|
};
|
|
assert_eq!(n, 43);
|
|
}
|