mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
Make run-make/allow-non-lint-warnings-cmdline
into a ui test
This commit is contained in:
parent
96f9fe5488
commit
eca8d209d9
@ -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");
|
|
||||||
}
|
|
@ -1,3 +1,6 @@
|
|||||||
|
//@ compile-flags: -Awarnings
|
||||||
|
//@ check-pass
|
||||||
|
|
||||||
#[derive()]
|
#[derive()]
|
||||||
#[derive(Copy, Clone)]
|
#[derive(Copy, Clone)]
|
||||||
pub struct Foo;
|
pub struct Foo;
|
Loading…
Reference in New Issue
Block a user