rust/src/test/run-pass/unit.rs
2012-08-01 19:16:06 -07:00

13 lines
137 B
Rust

// -*- rust -*-
fn f(u: ()) { return u; }
fn main() {
let u1: () = ();
let mut u2: () = f(u1);
u2 = ();
return ();
}