rustc_version

Function rustc_version 

Source
pub const fn rustc_version() -> &'static str
Expand description

Returns the rustc version that was used to build this application

This function returns just the plain version number without revision, e.g., 1.90.0.

Examples found in repository?
examples/rustc_version_example.rs (line 7)
7const RUSTC_VERSION: &str = rustc_version();