Test behavior of --help --invalid-flag

This commit is contained in:
Jamie Hill-Daniel
2026-01-07 16:55:37 +00:00
parent 4909fd8c77
commit e834e60987
+3
View File
@@ -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();
}