Sign in
rust
/
rust
/
4ff68e41875c472d4e8a6fee8d3f52d0e27b259c
/
.
/
tests
/
ui
/
pattern
/
struct_pattern_on_tuple_enum.rs
blob: a827788419394bf173a2c797cb2386ef78c9d9e4 [
file
]
//! 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`
}
}