mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Test behavior of --help --invalid-flag
This commit is contained in:
@@ -45,4 +45,7 @@ fn main() {
|
||||
)
|
||||
.actual_text("(rustc -Whelp -Zhelp -Chelp --help)", &ordered_help)
|
||||
.run();
|
||||
|
||||
// Test that `rustc --help` does not suppress invalid flag errors
|
||||
let help = bare_rustc().arg("--help --invalid-flag").run_fail().stdout_utf8();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user