This can, incidentally, be a great start for a tool like Why the Lucky Stiff's "Try Ruby in Your Browser" [1].
s/Ruby/Rust/
[1]: http://tryruby.org
https://github.com/mozilla/rust/issues/2235