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)
commit556f80f3dc475a7851dd971e360f934be97d872c
tree7566aa8427a71071e22ce17a9da2d9e81810590f
parent5986492773e6de61cced57f457da3700607f4a3a
parent8da290805676dd5cbedf01041af1c889ac6e93e1
Auto merge of #5485 - patriksvensson:feature/GH-5474, r=matklad

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)
tests/testsuite/run.rs