diff options
Diffstat (limited to 'tests/ui-fulldeps/missing-rustc-driver-error.rs')
-rw-r--r-- | tests/ui-fulldeps/missing-rustc-driver-error.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/ui-fulldeps/missing-rustc-driver-error.rs b/tests/ui-fulldeps/missing-rustc-driver-error.rs new file mode 100644 index 000000000..654cd6f6d --- /dev/null +++ b/tests/ui-fulldeps/missing-rustc-driver-error.rs @@ -0,0 +1,11 @@ +// Test that we get the following hint when trying to use a compiler crate without rustc_driver. +// error-pattern: try adding `extern crate rustc_driver;` at the top level of this crate +// compile-flags: --emit link +// The exactly list of required crates depends on the target. as such only test Unix targets. +// only-unix + +#![feature(rustc_private)] + +extern crate rustc_serialize; + +fn main() {} |