Sign in
rust
/
rust
/
730591cee4670a4aa6b78bb7fa4bc6cdc12c1952
/
.
/
tests
/
ui
/
pattern
/
struct_pattern_on_tuple_enum.rs
blob: a827788419394bf173a2c797cb2386ef78c9d9e4 [
file
] [
log
] [
blame
]
//! regression test for <https://github.com/rust-lang/rust/issues/17405>
enum
Foo
{
Bar
(
isize
)
}
fn
main
()
{
match
Foo
::
Bar
(
1
)
{
Foo
{
i
}
=>
()
//~ ERROR expected struct, variant or union type, found enum `Foo`
}
}