Avoid compiler error about glob imports in getopts example
Remove features from librustdoc
auto merge of #11142 : alanandrade/rust/improve_opts_example, r=alexcrichton

Ran into this in practice, fixing it to improve example correctness.