PageRenderTime 11ms CodeModel.GetById 8ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/src/test/run-pass/lazy-init.rs

http://github.com/jruderman/rust
Rust | 5 lines | 2 code | 3 blank | 0 comment | 2 complexity | 74dff34df986019a1321bfacafaebc6b MD5 | raw file
1
2
3fn foo(x: int) { log(debug, x); }
4
5fn main() { let mut x: int; if 1 > 2 { x = 12; } else { x = 10; } foo(x); }