<!-- Thank you for filing a bug report! 🐛 Please provide a short summary of the bug, along with any information you feel relevant to replicating the bug. --> ```rust fn test() { let vec = Vec::new(); vec.contains(&0); // works Vec::contains(&vec, &0); // doesn't work } ``` ### Meta <!-- If you're using the stable version of the compiler, you should also check if the bug also exists in the beta or nightly versions. --> `rustc --version --verbose`: ``` rustc 1.62.1 (e092d0b6b 2022-07-16) binary: rustc commit-hash: e092d0b6b43f2de967af0887873151bb1c0b18d3 commit-date: 2022-07-16 host: x86_64-unknown-linux-gnu release: 1.62.1 LLVM version: 14.0.5 ```