summaryrefslogtreecommitdiffstats
path: root/tests/ui/typeck/bad-type-in-vec-contains.rs
blob: 4433047b75ad2d0c9dd76c46c639b217d9735896 (plain)
1
2
3
4
5
6
7
// The error message here still is pretty confusing.

fn main() {
    let primes = Vec::new();
    primes.contains(3);
    //~^ ERROR mismatched types
}