doc: un-xfail conditions tutorial
std: io: add some code examples

Closes #11232.
auto merge of #11271 : adridu59/rust/patch-io, r=huonw