title: How do I read a single String from standard input?
body: <p>There isn't straightforward instruction on receiving a string as a variable in the <a href="http://doc.rust-lang.org/1.0.0-alpha/std/io/index.html" rel="noreferrer">std::io documentation</a>, but I figured this should work:</p>
  
  <pre><code>use std::io;
  let line = io::stdin().lock().lines().unwrap();
  </code></pre>
  
  <p>But I'm getting this error:</p>
  
  <pre><code>src\main.rs:28:14: 28:23 error: unresolved name `io::stdin`
  src\main.rs:28          let line = io::stdin.lock().lines().unwrap();
                                     ^~~~~~~~~
  </code></pre>
  
  <p>Why?</p>
  
  <p>I'm using a nightly Rust v1.0.</p>