diff options
| author | Lindsey Kuper <[email protected]> | 2011-03-23 14:52:22 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2011-03-23 16:01:29 -0700 |
| commit | 0b63512f4cb0aca1579b110d9104eeed4918a6eb (patch) | |
| tree | bf9014f6261f2b15db81eec7e1d34aa1d3de2cd3 /src/test | |
| parent | build: Fix minor typo in "cp" output (diff) | |
| download | rust-0b63512f4cb0aca1579b110d9104eeed4918a6eb.tar.xz rust-0b63512f4cb0aca1579b110d9104eeed4918a6eb.zip | |
Support for 'float' in type signatures.
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/float-signature.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/run-pass/float-signature.rs b/src/test/run-pass/float-signature.rs new file mode 100644 index 00000000..da18390d --- /dev/null +++ b/src/test/run-pass/float-signature.rs @@ -0,0 +1,10 @@ +fn main() { + fn foo(float n) -> float { + ret n + 0.12345; + } + + let float n = 0.1; + let float m = foo(n); + + log m; +} |