summaryrefslogtreecommitdiffstats
path: root/tests/ui/methods/issues/issue-84495.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/methods/issues/issue-84495.rs')
-rw-r--r--tests/ui/methods/issues/issue-84495.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/methods/issues/issue-84495.rs b/tests/ui/methods/issues/issue-84495.rs
new file mode 100644
index 000000000..28c094bf2
--- /dev/null
+++ b/tests/ui/methods/issues/issue-84495.rs
@@ -0,0 +1,4 @@
+fn main() {
+ let x: i32 = 1;
+ println!("{:?}", x.count()); //~ ERROR is not an iterator
+}