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

9 lines
140 B
Rust

fn main() {
fn foo(n: float) -> float { return n + 0.12345; }
let n: float = 0.1;
let m: float = foo(n);
log(debug, m);
}