for name in names.iter() {
match name {
&"Ferris" => println!("There is a rustacean among us!"),
+ // TODO ^ Try deleting the & and matching just "Ferris"
_ => println!("Hello {}", name),
}
}
+
+ println!("names: {:?}", names);
}
```
data is provided. Once the collection has been consumed it is no longer
available for reuse as it has been 'moved' within the loop.
-```rust, editable
+```rust, editable, ignore
fn main() {
let names = vec!["Bob", "Frank", "Ferris"];
_ => println!("Hello {}", name),
}
}
+
+ println!("names: {:?}", names);
+ // FIXME ^ Comment out this line
}
```