aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/rust/compile/issue-2029.rs
blob: 78569631eb1167e4849fe6be9d4029f23e47e50d (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/variant, found" "" { target *-*-* } .-1 }
        => ()
    }
}