]> git.lizzy.rs Git - rust.git/blob - tests/ui-fulldeps/missing-rustc-driver-error.rs
Rollup merge of #104965 - zacklukem:p-option-as_ref-docs, r=scottmcm
[rust.git] / tests / ui-fulldeps / missing-rustc-driver-error.rs
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.
5 // only-unix
6
7 #![feature(rustc_private)]
8
9 extern crate rustc_serialize;
10
11 fn main() {}