mirror of
https://github.com/rust-lang/rust.git
synced 2026-01-19 23:40:48 +00:00
13 lines
313 B
Rust
13 lines
313 B
Rust
// Regression test for issue #4968
|
|
|
|
//@ dont-require-annotations: NOTE
|
|
|
|
const A: (isize,isize) = (4,2);
|
|
fn main() {
|
|
match 42 { A => () }
|
|
//~^ ERROR mismatched types
|
|
//~| NOTE expected type `{integer}`
|
|
//~| NOTE found tuple `(isize, isize)`
|
|
//~| NOTE expected integer, found `(isize, isize)`
|
|
}
|