]> git.lizzy.rs Git - rust.git/blob - tests/ui/suggestions/deref-path-method.stderr
Rollup merge of #106670 - albertlarsan68:check-docs-in-pr-ci, r=Mark-Simulacrum
[rust.git] / tests / ui / suggestions / deref-path-method.stderr
1 error[E0599]: no function or associated item named `contains` found for struct `Vec<_, _>` in the current scope
2   --> $DIR/deref-path-method.rs:3:10
3    |
4 LL |     Vec::contains(&vec, &0);
5    |          ^^^^^^^^ function or associated item not found in `Vec<_, _>`
6    |
7 help: the function `contains` is implemented on `[_]`
8    |
9 LL |     <[_]>::contains(&vec, &0);
10    |     ~~~~~
11
12 error: aborting due to previous error
13
14 For more information about this error, try `rustc --explain E0599`.