2018-06-29 17:17:56 +00:00
|
|
|
error[E0689]: can't call method `pow` on ambiguous numeric type `{float}`
|
2018-12-25 15:56:47 +00:00
|
|
|
--> $DIR/issue-51874.rs:2:19
|
2018-06-29 17:17:56 +00:00
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let a = (1.0).pow(1.0);
|
2018-06-29 17:17:56 +00:00
|
|
|
| ^^^
|
2019-10-24 05:20:58 +00:00
|
|
|
|
|
2018-06-29 17:17:56 +00:00
|
|
|
help: you must specify a concrete type for this numeric value, like `f32`
|
|
|
|
|
|
2019-03-09 12:03:44 +00:00
|
|
|
LL | let a = (1.0_f32).pow(1.0);
|
2021-06-22 02:07:19 +00:00
|
|
|
| ~~~~~~~
|
2018-06-29 17:17:56 +00:00
|
|
|
|
|
|
|
error: aborting due to previous error
|
|
|
|
|
|
|
|
For more information about this error, try `rustc --explain E0689`.
|