]> git.lizzy.rs Git - rust.git/blob - src/test/ui/suggestions/deref-path-method.rs
Rollup merge of #105505 - WaffleLapkin:yeet_unused_parens_lint, r=fee1-dead
[rust.git] / src / test / ui / suggestions / deref-path-method.rs
1 fn main() {
2     let vec = Vec::new();
3     Vec::contains(&vec, &0);
4     //~^ ERROR no function or associated item named `contains` found for struct `Vec<_, _>` in the current scope
5     //~| HELP the function `contains` is implemented on `[_]`
6 }