blob: 033a06741e22e646b1bf8f2fa5f51ae28bf8b04b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
//@ ignore-cross-compile
// Test that `-Awarnings` suppresses warnings for unstable APIs.
use run_make_support::rustc;
fn main() {
rustc().input("bar.rs").run();
rustc()
.input("foo.rs")
.arg("-Awarnings")
.run()
.assert_stdout_not_contains("warning")
.assert_stderr_not_contains("warning");
}
|