summaryrefslogtreecommitdiffstats
path: root/tests/ui/issues/issue-51874.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/issues/issue-51874.rs')
-rw-r--r--tests/ui/issues/issue-51874.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/ui/issues/issue-51874.rs b/tests/ui/issues/issue-51874.rs
new file mode 100644
index 000000000..d9d7e36b5
--- /dev/null
+++ b/tests/ui/issues/issue-51874.rs
@@ -0,0 +1,3 @@
+fn main() {
+ let a = (1.0).pow(1.0); //~ ERROR can't call method `pow` on ambiguous numeric type
+}