mirror of
https://github.com/rust-lang/rust.git
synced 2025-11-24 10:30:37 +00:00
15 lines
344 B
Rust
15 lines
344 B
Rust
//@ 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");
|
|
}
|