Sign in
rust
/
rust
/
526a91cbcc4601b92b0587405015e07b9c0d79f6
/
.
/
tests
/
ui
/
type-inference
/
ambiguous-num-type-method-call.rs
blob: ee3c95ba0843be21de5b3bc9e2298ca50b3b3af8 [
file
] [
log
] [
blame
]
//! 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
}