1 // Test that we get the following hint when trying to use a compiler crate without rustc_driver.
2 // error-pattern: try adding `extern crate rustc_driver;` at the top level of this crate
3 // compile-flags: --emit link
4 // The exactly list of required crates depends on the target. as such only test Unix targets.
7 #![feature(rustc_private)]
9 extern crate rustc_serialize;