mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-30 16:39:26 +00:00
11 lines
200 B
Rust
11 lines
200 B
Rust
#![feature(plugin)]
|
|
#![plugin(clippy)]
|
|
#![warn(single_match_else)]
|
|
|
|
fn main() {
|
|
let n = match (42, 43) {
|
|
(42, n) => n,
|
|
_ => panic!("typeck error"),
|
|
};
|
|
assert_eq!(n, 43);
|
|
}
|