about summary refs log tree commit diff
path: root/tests/run-make/error-found-staticlib-instead-crate/rmake.rs
blob: 8c707092b7e44847db0292b1aefe6863caae3c92 (plain)
1
2
3
4
5
6
7
8
9
10
11
// When rustc is looking for a crate but is given a staticlib instead,
// the error message should be helpful and indicate precisely the cause
// of the compilation failure.
// See https://github.com/rust-lang/rust/pull/21978

use run_make_support::rustc;

fn main() {
    rustc().input("foo.rs").crate_type("staticlib").run();
    rustc().input("bar.rs").run_fail().assert_stderr_contains("found staticlib");
}