$ curl cheat.sh/
/*
 * You need to import the trait that implements the `flush` method for
 * `Stdout`.
 * 
 * According to the documentation:
 * 
 * [![io::Write][1]][1]
 * 
 * Therefore:
 */

 use std::io::Write; // <--- bring the trait into scope

 fn main() {
     std::io::stdout().flush().expect("some error message");
 }

/*
 * [Playground example](http:play.integer32.com/?gist=bf4ddbf23ef14d315
 * d53c0a4b920c783&version=stable)
 * 
 *   [1]: https:i.stack.imgur.com/n9TRg.png
 * 
 * [Simon Whitehead] [so/q/40392906] [cc by-sa 3.0]
 */

$
Follow @igor_chubin cheat.sh