rust/src/test/run-pass/float-signature.rs
2011-07-27 15:54:33 +02:00

8 lines
128 B
Rust

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