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