☰
Debian Codegraph
@
15:15.3.rel1-2
15:15.3.rel1-1
/
/
gcc
/
testsuite
/
rust
/
compile
/
issue-2029.rs
☽
☼
gcc/testsuite/rust/compile/issue-2029.rs
code
plain
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
}