about summary refs log tree commit diff
path: root/tests/ui/issues/issue-4968.rs
blob: 08539d6debd82b20b9382c921059f6de46aaf547 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// 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)`
}