]> git.lizzy.rs Git - rust.git/blob - src/test/ui/numbers-arithmetic/float-signature.rs
Auto merge of #81507 - weiznich:add_diesel_to_cargo_test, r=Mark-Simulacrum
[rust.git] / src / test / 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 }