rust/src/test/ui/issues/issue-4968.rs

11 lines
250 B
Rust
Raw Normal View History

// Regression test for issue #4968
2014-12-06 02:12:25 +00:00
const A: (isize,isize) = (4,2);
fn main() {
2014-02-05 22:33:10 +00:00
match 42 { A => () }
2015-01-12 06:01:44 +00:00
//~^ ERROR mismatched types
2016-07-28 16:49:31 +00:00
//~| expected type `{integer}`
//~| found type `(isize, isize)`
//~| expected integer, found tuple
}