1 2 3 4 5 6 7 8
fn main() { let vec = vec![1, 2, 3]; for i in &vec { if vec.contains(i) { println!("{i}"); } } }