]> git.lizzy.rs Git - rust.git/blob - tests/ui/numbers-arithmetic/float-signature.rs
Rollup merge of #106644 - alexcrichton:update-wasi-toolchain, r=cuviper
[rust.git] / tests / ui / numbers-arithmetic / float-signature.rs
1 // run-pass
2
3
4 pub fn main() {
5     fn foo(n: f64) -> f64 { return n + 0.12345; }
6     let n: f64 = 0.1;
7     let m: f64 = foo(n);
8     println!("{}", m);
9 }