Added comment to

`tests/ui/type-inference/ambiguous-num-type-method-call.rs`
This commit is contained in:
reddevilmidzy 2025-12-03 23:24:39 +09:00
parent 5e802dd1a1
commit 07b1dadf86
2 changed files with 3 additions and 1 deletions

View file

@ -1,3 +1,5 @@
//! 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
}

View file

@ -1,5 +1,5 @@
error[E0689]: can't call method `pow` on ambiguous numeric type `{float}`
--> $DIR/issue-51874.rs:2:19
--> $DIR/ambiguous-num-type-method-call.rs:4:19
|
LL | let a = (1.0).pow(1.0);
| ^^^