Added comment to
`tests/ui/type-inference/ambiguous-num-type-method-call.rs`
This commit is contained in:
parent
5e802dd1a1
commit
07b1dadf86
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
| ^^^
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue