Skip to content

Commit 07b1dad

Browse files
committed
Added comment to
`tests/ui/type-inference/ambiguous-num-type-method-call.rs`
1 parent 5e802dd commit 07b1dad

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! regression test for <https://github.com/rust-lang/rust/issues/51874>
2+
13
fn main() {
24
let a = (1.0).pow(1.0); //~ ERROR can't call method `pow` on ambiguous numeric type
35
}

tests/ui/type-inference/ambiguous-num-type-method-call.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error[E0689]: can't call method `pow` on ambiguous numeric type `{float}`
2-
--> $DIR/issue-51874.rs:2:19
2+
--> $DIR/ambiguous-num-type-method-call.rs:4:19
33
|
44
LL | let a = (1.0).pow(1.0);
55
| ^^^

0 commit comments

Comments
 (0)