rustup
rustup self update
Update the rustup manager itself, not the compiler toolchain. Some distributor-managed installations disable self-updating; use the distributor's supported process in that case. Do not execute this example in a shared lab. 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): May change the rustup installation; exact result depends on distribution and network. Common mistake: Confusing rustup's own version with rustc's version.
Formal Syntax & Structure
rust syntaxrust
rustup self updateWorking Example
Example Snippetrust
rustup self update