gccrs: Handle `async` functions in traits
[official-gcc.git] / gcc / testsuite / rust / compile / issue-2029.rs
blobdab200d7d8e389475750f0337c597049a72183db
1 struct Foo(bool);
2 fn foo(_: usize) -> Foo {
3     Foo(false)
6 fn main() {
7     match Foo(true) {
8         foo(x)
9         // { dg-error "expected tuple struct or tuple variant, found function " "" { target *-*-* } .-1 }
10         => ()
11     }