Closed
Description
fn test() {
let vec = Vec::new();
vec.contains(&0); // works
Vec::contains(&vec, &0); // doesn't work
}
Meta
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