summaryrefslogtreecommitdiffstats
path: root/tests/ui/suggestions/deref-path-method.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/suggestions/deref-path-method.stderr')
-rw-r--r--tests/ui/suggestions/deref-path-method.stderr14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/ui/suggestions/deref-path-method.stderr b/tests/ui/suggestions/deref-path-method.stderr
new file mode 100644
index 000000000..1cc37d611
--- /dev/null
+++ b/tests/ui/suggestions/deref-path-method.stderr
@@ -0,0 +1,14 @@
+error[E0599]: no function or associated item named `contains` found for struct `Vec<_, _>` in the current scope
+ --> $DIR/deref-path-method.rs:3:10
+ |
+LL | Vec::contains(&vec, &0);
+ | ^^^^^^^^ function or associated item not found in `Vec<_, _>`
+ |
+help: the function `contains` is implemented on `[_]`
+ |
+LL | <[_]>::contains(&vec, &0);
+ | ~~~~~
+
+error: aborting due to previous error
+
+For more information about this error, try `rustc --explain E0599`.