PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

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

http://github.com/jruderman/rust
Rust | 12 lines | 7 code | 4 blank | 1 comment | 0 complexity | 5568606e911e59a8b8642fc86f109dc2 MD5 | raw file
 1
 2
 3
 4// -*- rust -*-
 5fn f(u: ()) { return u; }
 6
 7fn main() {
 8    let u1: () = ();
 9    let mut u2: () = f(u1);
10    u2 = ();
11    return ();
12}