summaryrefslogtreecommitdiffstats
path: root/src/test/ui/issues/issue-51874.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/test/ui/issues/issue-51874.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/ui/issues/issue-51874.rs b/src/test/ui/issues/issue-51874.rs
new file mode 100644
index 000000000..d9d7e36b5
--- /dev/null
+++ b/src/test/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
+}