Skip to content

Commit 11c5041

Browse files
committed
Assert optional args with square brackets [arg...]
1 parent 13a09be commit 11c5041

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tests/testsuite/run.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ fn run_multiple_packages() {
12511251

12521252
cargo().arg("-p").arg("d1").arg("-p").arg("d2")
12531253
.with_status(1)
1254-
.with_stderr_contains("error: The argument '--package <SPEC>...' was provided more than once, but cannot be used multiple times").run();
1254+
.with_stderr_contains("error: The argument '--package [<SPEC>...]' was provided more than once, but cannot be used multiple times").run();
12551255

12561256
cargo()
12571257
.arg("-p")

tests/testsuite/rustc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ fn fail_with_multiple_packages() {
540540
.with_status(1)
541541
.with_stderr_contains(
542542
"\
543-
error: The argument '--package <SPEC>...' was provided more than once, \
543+
error: The argument '--package [<SPEC>...]' was provided more than once, \
544544
but cannot be used multiple times
545545
",
546546
)

0 commit comments

Comments
 (0)