```rust let vec = vec![1, 2, 3, 4, 5]; if vec.contains(&3) { println!("3 is in the vector!"); } else { println!("3 is not in the vector!"); } ```