2011-06-15 13:19:50 -05:00
|
|
|
|
|
|
|
|
2012-01-19 20:31:08 -06:00
|
|
|
enum thing { a, b, c, }
|
2011-04-19 18:52:59 -05:00
|
|
|
|
2012-01-23 16:59:00 -06:00
|
|
|
fn foo(it: fn(int)) { it(10); }
|
2011-04-19 18:52:59 -05:00
|
|
|
|
|
|
|
fn main() {
|
2012-03-22 10:39:41 -05:00
|
|
|
let mut x = true;
|
2011-07-27 07:19:39 -05:00
|
|
|
alt a {
|
2012-06-30 18:19:07 -05:00
|
|
|
a { x = true; foo(|_i| { } ) }
|
2012-01-19 03:03:57 -06:00
|
|
|
b { x = false; }
|
|
|
|
c { x = false; }
|
2011-04-19 18:52:59 -05:00
|
|
|
}
|
2011-08-15 23:54:52 -05:00
|
|
|
}
|