Make run-make/allow-non-lint-warnings-cmdline into a ui test

This commit is contained in:
Guillaume Gomez 2024-06-13 12:52:05 +02:00
parent 96f9fe5488
commit eca8d209d9
2 changed files with 3 additions and 8 deletions

View File

@ -1,8 +0,0 @@
// Test that -A warnings makes the 'empty trait list for derive' warning go away.
use run_make_support::rustc;
fn main() {
let output = rustc().input("foo.rs").arg("-Awarnings").run();
output.assert_stderr_not_contains("warning");
}

View File

@ -1,3 +1,6 @@
//@ compile-flags: -Awarnings
//@ check-pass
#[derive()]
#[derive(Copy, Clone)]
pub struct Foo;