aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-2029.rs
blob: dab200d7d8e389475750f0337c597049a72183db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
struct Foo(bool);
fn foo(_: usize) -> Foo {
    Foo(false)
}

fn main() {
    match Foo(true) {
        foo(x)
        // { dg-error "expected tuple struct or tuple variant, found function " "" { target *-*-* } .-1 }
        => ()
    }
}