summary refs log tree commit diff
path: root/src/test/ui/issues/issue-5927.rs
blob: 847936cc95402a75c85012583e249858876c7a87 (plain)
1
2
3
4
5
6
7
fn main() {
    let z = match 3 {
        x(1) => x(1) //~ ERROR cannot find tuple struct/variant `x` in this scope
        //~^ ERROR cannot find function `x` in this scope
    };
    assert!(z == 3);
}