Sign in
◑
Theme
gnu
/
gcc.git
/
bb5c3bfcb28b423544676b30df5a3bc97e91c41f
/
.
/
gcc
/
testsuite
/
rust
/
compile
/
pattern-struct.rs
blob: 8e6e45ec1f2086d94dec4baf657071aa2432773f [
file
]
#![
feature
(
no_core
)]
#![
no_core
]
fn
main
()
{
enum
A
{
B
,
C
,
}
impl
A
{
fn
new
()
{}
}
fn
bar
(
foo
:
A
)
{
match
foo
{
A
::
new
()
=>
(),
// { dg-error "expected tuple struct or tuple variant, found function" "" { target *-*-* } .-1 }
_
=>
{}
}
}
}