Add a note about requiring nightly

This commit is contained in:
David Tolnay 2018-05-15 08:59:32 -07:00
parent f87aa416f0
commit 09f426e077
No known key found for this signature in database
GPG key ID: F9BA143B95FF6D82

View file

@ -22,6 +22,10 @@ This command optionally uses [`Pygments`](http://pygments.org/) to colorize the
expanded output. If `Pygments` is not available, the expanded code is not
colorized. Install with `pip install Pygments`.
Cargo expand requires a nightly toolchain because it relies on unstable compiler
flags. If nightly is not your default toolchain, the `cargo expand` commands
shown below will need to be run as `cargo +nightly expand`.
## Example
#### `$ cat src/main.rs`