about summary refs log tree commit diff
path: root/tests/ui/suggestions/method-missing-parentheses.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/method-missing-parentheses.rs')
-rw-r--r--tests/ui/suggestions/method-missing-parentheses.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/suggestions/method-missing-parentheses.rs b/tests/ui/suggestions/method-missing-parentheses.rs
new file mode 100644
index 00000000000..f10bfb56d2e
--- /dev/null
+++ b/tests/ui/suggestions/method-missing-parentheses.rs
@@ -0,0 +1,5 @@
+fn main() {
+    let _ = vec![].into_iter().collect::<usize>;
+    //~^ ERROR attempted to take value of method `collect` on type `std::vec::IntoIter<_>`
+    //~| ERROR field expressions cannot have generic arguments
+}