rust/src/test/run-pass/alt-arrows-blocky-commas.rs
2012-08-06 15:36:30 -07:00

56 lines
807 B
Rust

// no-reformat
// Testing the presense or absense of commas separating block-structure
// match arm expressions
fn fun(_f: fn()) {
}
fn it(_f: fn() -> bool) {
}
fn main() {
match 0 {
00 => {
}
01 => if true {
} else {
}
03 => match 0 {
_ => ()
}
04 => do fun {
}
05 => for it {
}
06 => while false {
}
07 => loop {
}
08 => unsafe {
}
09 => unchecked {
}
10 => {
},
11 => if true {
} else {
},
13 => match 0 {
_ => ()
},
14 => do fun {
},
15 => for it {
},
16 => while false {
},
17 => loop {
},
18 => unsafe {
},
19 => unchecked {
},
_ => ()
}
}