about summary refs log tree commit diff
path: root/tests/ui-fulldeps/missing-rustc-driver-error.rs
blob: 23ca39363bcd27e599a94007f4c5632f22973419 (plain)
1
2
3
4
5
6
7
8
9
10
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
//@ normalize-stderr-test: ".*crate .* required.*\n\n" -> ""
//@ normalize-stderr-test: "aborting due to [0-9]+" -> "aborting due to NUMBER"

#![feature(rustc_private)]

extern crate rustc_serialize;

fn main() {}