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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

11 lines
251 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 tuple `(isize, isize)`
//~| expected integer, found tuple
}