2024-05-26 06:37:53 -05:00
|
|
|
// Test that `-Awarnings` suppresses warnings for unstable APIs.
|
|
|
|
|
2024-06-07 08:23:10 -05:00
|
|
|
use run_make_support::rustc;
|
2024-05-26 06:37:53 -05:00
|
|
|
|
|
|
|
fn main() {
|
|
|
|
rustc().input("bar.rs").run();
|
2024-06-07 08:23:10 -05:00
|
|
|
rustc()
|
|
|
|
.input("foo.rs")
|
|
|
|
.arg("-Awarnings")
|
|
|
|
.run()
|
|
|
|
.assert_stdout_not_contains("warning")
|
|
|
|
.assert_stderr_not_contains("warning");
|
2024-05-26 06:37:53 -05:00
|
|
|
}
|