Skip to content

Commit ac78f60

Browse files
committed
Auto merge of #12287 - yerke:yerke/fix-cargo-script-example, r=epage
cargo script example needs nightly -Zscript feature ### What does this PR try to resolve? Update cargo script example. Cargo script currently needs nightly `-Zscript` feature. Without this change users will see: ``` error: running `./cargo_script.rs` requires `-Zscript` ``` cc #12207 ### How should we test and review this PR? I don't think any additional tests are needed. All existing tests for cargo script already use `-Zscript`. ### Additional information Thanks for designing and implementing cargo script `@epage!`
2 parents 2035d0d + 4fb22dd commit ac78f60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/src/reference/unstable.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1394,7 +1394,7 @@ fn main() {}
13941394

13951395
A user may optionally specify a manifest in a `cargo` code fence in a module-level comment, like:
13961396
```rust
1397-
#!/usr/bin/env cargo
1397+
#!/usr/bin/env -S cargo +nightly -Zscript
13981398

13991399
//! ```cargo
14001400
//! [dependencies]

0 commit comments

Comments
 (0)