Auto merge of #5485 - patriksvensson:feature/GH-5474, r=matklad
authorbors <bors@rust-lang.org>
Sat, 5 May 2018 14:24:55 +0000 (14:24 +0000)
committerbors <bors@rust-lang.org>
Sat, 5 May 2018 14:24:55 +0000 (14:24 +0000)
Do not allow running library examples.

This is my first contribution to anything Rust related that I haven't written myself, and I'm not a very proficient Rust programmer (yet), so would love some feedback on improvements.

I also might have solved this the wrong way... ðŸ˜„

Closes #5474

(cc @matklad)

1  2 
tests/testsuite/run.rs

Simple merge