a586f52a0f
This should give us more UI coverage for free. It also removes the `run-pass` suite, so we now only have the `ui` suite.
12 lines
236 B
Rust
12 lines
236 B
Rust
#![warn(clippy::single_match_else)]
|
|
|
|
//! Test for https://github.com/rust-lang/rust-clippy/issues/1588
|
|
|
|
fn main() {
|
|
let n = match (42, 43) {
|
|
(42, n) => n,
|
|
_ => panic!("typeck error"),
|
|
};
|
|
assert_eq!(n, 43);
|
|
}
|