title: Compilation error when comparing a string with a char in a Hangman project
body: <p>I'm trying to make a hangman game:</p>
  
  <pre><code>use std::io::stdin;
  
  fn main() {
      let mut isRunning: bool = true;
  
      'outer: loop {
          let w1 = vec!['m', 'o', 'm', 'm', 'y']; //the answer
          println!("Guess a Character");
  
          loop {
              let mut line = String::new(); //the guess
  
              let input = stdin().read_line(&amp;mut line);
              let char_vec: Vec&lt;char&gt; = line.to_string().chars().collect();
  
              for x in 0..4 {
                  if line == w1[x] {
                      println!("you guessed right? ");
                  }
              }
          }
      }
  }
  </code></pre>
  
  <p>I get a compiler error when comparing the user input to the letters in the word:</p>
  
  <pre class="lang-none prettyprint-override"><code>error[E0277]: the trait bound `std::string::String: std::cmp::PartialEq&lt;char&gt;` is not satisfied
    --&gt; src/main.rs:17:25
     |
  17 |                 if line == w1[x] {
     |                         ^^ can't compare `std::string::String` with `char`
     |
     = help: the trait `std::cmp::PartialEq&lt;char&gt;` is not implemented for `std::string::String`
  </code></pre>
  
  <p>Why this doesn't work as intended?</p>