summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/deref-path-method.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/deref-path-method.rs')
-rw-r--r--tests/ui/suggestions/deref-path-method.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/ui/suggestions/deref-path-method.rs b/tests/ui/suggestions/deref-path-method.rs
new file mode 100644
index 000000000..0281cdb6b
--- /dev/null
+++ b/tests/ui/suggestions/deref-path-method.rs
@@ -0,0 +1,6 @@
+fn main() {
+ let vec = Vec::new();
+ Vec::contains(&vec, &0);
+ //~^ ERROR no function or associated item named `contains` found for struct `Vec<_, _>` in the current scope
+ //~| HELP the function `contains` is implemented on `[_]`
+}