Closed
Description
So I'm writing a hangman app in Rust and I get this weird error message. It doesn't make sense since <-
isn't even in Rust anymore.
error: expected `{`, found `in`
--> src/main.rs:8:17
|
8 | if line in words {
| _________________-^
9 | | println!("Success");
10 | | } else {
| |_________- help: try placing this code inside a block: `{ words <- { println!("Success"); }; }`
error: aborting due to previous error
error: Could not compile `hangman`.