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-08-03 21:59:04 -05:00
|
|
|
a => { x = true; foo(|_i| { } ) }
|
|
|
|
b => { x = false; }
|
|
|
|
c => { x = false; }
|
2011-04-19 18:52:59 -05:00
|
|
|
}
|
2011-08-15 23:54:52 -05:00
|
|
|
}
|