mirror of
https://git.proxmox.com/git/rustc
synced 2025-08-24 04:40:49 +00:00
14 lines
319 B
Rust
14 lines
319 B
Rust
// 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");
|
|
}
|