5 fn add_integer_to_f32(x: f32) -> f32 {
6 x + 100.0 //~ ERROR cannot add `{integer}` to `f32`
9 fn add_integer_to_f64(x: f64) -> f64 {
10 x + 100.0 //~ ERROR cannot add `{integer}` to `f64`
13 fn subtract_integer_from_f32(x: f32) -> f32 {
14 x - 100.0 //~ ERROR cannot subtract `{integer}` from `f32`
17 fn subtract_integer_from_f64(x: f64) -> f64 {
18 x - 100.0 //~ ERROR cannot subtract `{integer}` from `f64`
21 fn multiply_f32_by_integer(x: f32) -> f32 {
22 x * 100.0 //~ ERROR cannot multiply `f32` by `{integer}`
25 fn multiply_f64_by_integer(x: f64) -> f64 {
26 x * 100.0 //~ ERROR cannot multiply `f64` by `{integer}`
29 fn divide_f32_by_integer(x: f32) -> f32 {
30 x / 100.0 //~ ERROR cannot divide `f32` by `{integer}`
33 fn divide_f64_by_integer(x: f64) -> f64 {
34 x / 100.0 //~ ERROR cannot divide `f64` by `{integer}`