2018-08-30 14:18:55 +02:00
|
|
|
// run-pass
|
2012-10-30 15:53:06 -07:00
|
|
|
struct Foo;
|
|
|
|
|
2013-02-01 19:43:17 -08:00
|
|
|
pub fn main() {
|
2012-10-30 15:53:06 -07:00
|
|
|
let x: Foo = Foo;
|
|
|
|
match x {
|
2014-01-09 21:06:55 +11:00
|
|
|
Foo => { println!("hi"); }
|
2012-10-30 15:53:06 -07:00
|
|
|
}
|
|
|
|
}
|