Sign in
rust
/
rust
/
a5a286df89146c64afebc6dcbbd3f61ba67ae53b
/
.
/
tests
/
ui
/
type-inference
/
ambiguous-num-type-method-call.rs
blob: ee3c95ba0843be21de5b3bc9e2298ca50b3b3af8 [
file
]
//! regression test for <https://github.com/rust-lang/rust/issues/51874>
fn
main
()
{
let
a
=
(
1.0
).
pow
(
1.0
);
//~ ERROR can't call method `pow` on ambiguous numeric type
}