rust-lang/cargo — pull request #864 by tomaka (2014-11-13 15:47:49+00:00)
Title: -l flag no longer pass to binaries if there's a library in the package

Close #814

Unfortunately I don't really know how to add a test for this.
In order to try compile a library then a binary, you need to successfully compile the library, which means that you'd need to pass a valid value instead of just `-l foo`