2013-02-19 00:56:02 +09:00
|
|
|
// Regression test for issue #4968
|
|
|
|
|
2014-12-05 18:12:25 -08:00
|
|
|
const A: (isize,isize) = (4,2);
|
2013-02-19 00:56:02 +09:00
|
|
|
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}`
|
2019-11-13 14:16:56 -08:00
|
|
|
//~| found tuple `(isize, isize)`
|
2023-01-02 18:00:33 -08:00
|
|
|
//~| expected integer, found `(isize, isize)`
|
2013-02-19 00:56:02 +09:00
|
|
|
}
|