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

9 lines
129 B
Rust
Raw Normal View History

fn main() {
2011-07-27 07:19:39 -05:00
fn foo(n: float) -> float { ret n + 0.12345; }
let n: float = 0.1;
let m: float = foo(n);
log m;
}