Debian Codegraph @

gcc/testsuite/rust/compile/issue-2029.rs

raw
1 struct Foo(bool);
2 fn foo(_: usize) -> Foo {
3 Foo(false)
4 }
5
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 }
12 }