There should be a button on code snippets to submit them to http://play.rust-lang.org/ and have them run. I don't think that the code snippets should be live-editable in rustdoc like the one on the website. Note that the repository is located here: https://github.com/rust-lang/rust-playpen