2024-02-16 20:02:50 +00:00
|
|
|
//@ run-pass
|
2018-09-25 23:51:35 +02:00
|
|
|
#![allow(dead_code)]
|
2024-02-16 20:02:50 +00:00
|
|
|
//@ pretty-expanded FIXME #23616
|
2015-03-22 13:13:15 -07:00
|
|
|
|
2014-10-18 23:46:08 -07:00
|
|
|
enum Foo {
|
|
|
|
A,
|
2015-03-25 17:06:52 -07:00
|
|
|
B(isize),
|
|
|
|
C { a: isize },
|
2014-10-18 23:46:08 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
fn _foo (f: Foo) {
|
|
|
|
match f {
|
|
|
|
Foo::A | Foo::B(_) | Foo::C { .. } => {}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn main() {}
|