From 07b1dadf86041aa058a798e52d012ab2bbb85e39 Mon Sep 17 00:00:00 2001 From: reddevilmidzy Date: Wed, 3 Dec 2025 23:24:39 +0900 Subject: [PATCH] Added comment to `tests/ui/type-inference/ambiguous-num-type-method-call.rs` --- tests/ui/type-inference/ambiguous-num-type-method-call.rs | 2 ++ tests/ui/type-inference/ambiguous-num-type-method-call.stderr | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/ui/type-inference/ambiguous-num-type-method-call.rs b/tests/ui/type-inference/ambiguous-num-type-method-call.rs index d9d7e36b50e9..ee3c95ba0843 100644 --- a/tests/ui/type-inference/ambiguous-num-type-method-call.rs +++ b/tests/ui/type-inference/ambiguous-num-type-method-call.rs @@ -1,3 +1,5 @@ +//! regression test for + fn main() { let a = (1.0).pow(1.0); //~ ERROR can't call method `pow` on ambiguous numeric type } diff --git a/tests/ui/type-inference/ambiguous-num-type-method-call.stderr b/tests/ui/type-inference/ambiguous-num-type-method-call.stderr index 5c9331b4e1e1..3a808c06aef1 100644 --- a/tests/ui/type-inference/ambiguous-num-type-method-call.stderr +++ b/tests/ui/type-inference/ambiguous-num-type-method-call.stderr @@ -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); | ^^^