term: Don't run the code example, just compile it

This is blocking a snapshot because apparently the test fails on the bots.
auto merge of #14257 : alexcrichton/rust/fix-snap, r=huonw

This is blocking a snapshot because apparently the test fails on the bots.