os-rust/tests/ui/issues/issue-4968.rs

11 lines
262 B
Rust
Raw Normal View History

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