Use a channel explicitly for one command.

Section: Toolchain selection

Run Cargo with a specific toolchain

bash
bash
cargo +stable test
Explanation

Good for confirming whether an issue is tied to a specific channel or toolchain version.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Toolchain selection
Set the default toolchain
Choose the global channel to use by default.
OpenIn sheetbashsame section
Show active toolchain details
Display installed toolchains and the active default.
OpenIn sheetbashsame section
Pin a directory to one toolchain
Set a local override for the current project.
OpenIn sheetbashsame section
See which rustc binary is used
Show the actual executable path selected by rustup.
OpenIn sheetbashsame section
Build for a specific target
Compile using an installed target triple.
OpenIn sheetbash1 tag match
List installed and available components
See whether rustfmt, clippy, or docs are installed.