rust/src/test/run-pass/unit.rs

13 lines
131 B
Rust
Raw Normal View History

2010-06-23 23:03:09 -05:00
// -*- rust -*-
2011-07-27 07:19:39 -05:00
fn f(u: ()) { ret u; }
fn main() {
let u1: () = ();
let mut u2: () = f(u1);
u2 = ();
ret ();
}