2014-09-20 21:25:25 +02:00
|
|
|
enum Foo {
|
2015-01-08 21:54:35 +11:00
|
|
|
Bar(isize)
|
2014-09-20 21:25:25 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
fn main() {
|
2015-01-31 17:23:42 +01:00
|
|
|
match Foo::Bar(1) {
|
2016-09-15 00:51:46 +03:00
|
|
|
Foo { i } => () //~ ERROR expected struct, variant or union type, found enum `Foo`
|
2014-09-20 21:25:25 +02:00
|
|
|
}
|
|
|
|
|
}
|