[−][src]Constant rustc_simple_version::RUSTC_VERSION
pub const RUSTC_VERSION: &str = "rustc 1.46.0-nightly (449e8eaa2 2020-06-10)";
rustc version
Should be identical to the output of rustc --version
.
Example
println!("Built using {}", RUSTC_VERSION);