rustup

rustup default

Without a toolchain argument, inspect the default selection. Supplying a name changes the fallback and may install it. Project overrides and explicit toolchain selection can take precedence. Example format: shell. Manual illustration; review prerequisites and side effects before execution. No automatic installation, updates, network calls or configuration changes. Expected result (not executed): Displays the configured default, if present. Common mistake: Changing the default to solve a problem caused by a project override.

Formal Syntax & Structure

rust syntaxrust
rustup default [TOOLCHAIN]

Working Example

Example Snippetrust
rustup default
Rust Reference