From 4fb22dd7487f97952841afe9d6578303b0618c62 Mon Sep 17 00:00:00 2001 From: Yerkebulan Tulibergenov Date: Sat, 17 Jun 2023 23:34:44 -0700 Subject: [PATCH] cargo script example needs nightly -Zscript feature --- src/doc/src/reference/unstable.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/src/reference/unstable.md b/src/doc/src/reference/unstable.md index 49d3e007ef4..2cd665a4246 100644 --- a/src/doc/src/reference/unstable.md +++ b/src/doc/src/reference/unstable.md @@ -1407,7 +1407,7 @@ fn main() {} A user may optionally specify a manifest in a `cargo` code fence in a module-level comment, like: ```rust -#!/usr/bin/env cargo +#!/usr/bin/env -S cargo +nightly -Zscript //! ```cargo //! [dependencies]