Skip to content

Commit e834e60

Browse files
committed
Test behavior of --help --invalid-flag
1 parent 4909fd8 commit e834e60

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tests/run-make/rustc-help/rmake.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,7 @@ fn main() {
4545
)
4646
.actual_text("(rustc -Whelp -Zhelp -Chelp --help)", &ordered_help)
4747
.run();
48+
49+
// Test that `rustc --help` does not suppress invalid flag errors
50+
let help = bare_rustc().arg("--help --invalid-flag").run_fail().stdout_utf8();
4851
}

0 commit comments

Comments
 (0)