We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f5f2ed commit 222d90bCopy full SHA for 222d90b
tests/testsuite/cargo_command.rs
@@ -391,9 +391,27 @@ fn closed_output_ok() {
391
fn subcommand_leading_plus_output_contains() {
392
cargo_process("+nightly")
393
.with_status(101)
394
- .with_stderr_contains(
+ .with_stderr(
395
"\
396
-<tab>Cargo does not handle `+toolchain` directives.",
+error: no such subcommand: `+nightly`
397
+
398
+<tab>Cargo does not handle `+toolchain` directives.
399
+<tab>Did you mean to invoke `cargo` through `rustup` instead?",
400
+ )
401
+ .run();
402
+}
403
404
+#[cargo_test]
405
+fn full_did_you_mean() {
406
+ cargo_process("bluid")
407
+ .with_status(101)
408
409
+ "\
410
+error: no such subcommand: `bluid`
411
412
+<tab>Did you mean `build`?
413
414
+<tab>View all installed commands with `cargo --list`",
415
)
416
.run();
417
}
0 commit comments