rust/tests/ui-fulldeps/missing-rustc-driver-error.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

12 lines
396 B
Rust
Raw Normal View History

// 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
2022-12-12 13:37:28 -06:00
// 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() {}