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

/src/test/run-pass/float-signature.rs

http://github.com/jruderman/rust
Rust | 8 lines | 6 code | 2 blank | 0 comment | 0 complexity | 4a50e4b6f8af7445509bacb6f583baed MD5 | raw file
1
2
3fn main() {
4    fn foo(n: float) -> float { return n + 0.12345; }
5    let n: float = 0.1;
6    let m: float = foo(n);
7    log(debug, m);
8}