rust/src/test/run-pass/float-signature.rs
Brian Anderson 518dc52f85 Reformat
This changes the indexing syntax from .() to [], the vector syntax from ~[] to
[] and the extension syntax from #fmt() to #fmt[]
2011-08-20 11:04:00 -07:00

9 lines
129 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;
}