Skip to main content

rustc_version_pre

Macro rustc_version_pre 

Source
rustc_version_pre!() { /* proc-macro */ }
Expand description

Returns the Rust compiler pre version as &'static str.

ยงExample

const RUSTC_VERSION: semver::Version = compile_time::rustc_version!();
assert_eq!(RUSTC_VERSION.pre.as_str(), compile_time::rustc_version_pre!());