summaryrefslogtreecommitdiffstats
path: root/src/tools/cargo/tests/testsuite/cargo_features.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/cargo/tests/testsuite/cargo_features.rs')
-rw-r--r--src/tools/cargo/tests/testsuite/cargo_features.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tools/cargo/tests/testsuite/cargo_features.rs b/src/tools/cargo/tests/testsuite/cargo_features.rs
index cf7ef0190..d319ed686 100644
--- a/src/tools/cargo/tests/testsuite/cargo_features.rs
+++ b/src/tools/cargo/tests/testsuite/cargo_features.rs
@@ -594,7 +594,13 @@ fn z_flags_rejected() {
p.cargo("check -Zarg")
.masquerade_as_nightly_cargo(&["test-dummy-unstable"])
.with_status(101)
- .with_stderr("error: unknown `-Z` flag specified: arg")
+ .with_stderr(
+ r#"error: unknown `-Z` flag specified: arg
+
+For available unstable features, see https://doc.rust-lang.org/nightly/cargo/reference/unstable.html
+If you intended to use an unstable rustc feature, try setting `RUSTFLAGS="-Zarg"`
+"#,
+ )
.run();
p.cargo("check -Zprint-im-a-teapot")