Closed
Description
fn main() {
let a = (1.0).pow(1.0);
}
error[E0689]: can't call method `pow` on ambiguous numeric type `{float}`
--> src/main.rs:2:19
|
2 | let a = (1.0).pow(1.0);
| ^^^
help: you must specify a concrete type for this numeric value, like `f32`
|
2 | let a = (1.0)_f32.pow(1.0);
| ^^^^^^^^^
Please note the (1.0)_f32