rust/src/test/run-pass/early-ret-binop.rs
Niko Matsakis 72a3667eb3 Allow tail expressions even in no_value blocks. Type checker
will guarantee they have unit type.
2012-01-03 13:13:52 -08:00

3 lines
64 B
Rust

fn wsucc(n: int) -> int { ({ ret n + 1 } == 0); }
fn main() { }