repo.or.cz
/
official-gcc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
gccrs: Handle `async` functions in traits
[official-gcc.git]
/
gcc
/
testsuite
/
rust
/
compile
/
issue-2029.rs
blob
dab200d7d8e389475750f0337c597049a72183db
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
}