Function cfg_expr::targets::rustc_version[][src]

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

Retrieves the version of rustc for which the built-in targets were retrieved from. Targets may be added and removed between different rustc versions.

assert_eq!("1.53.0", cfg_expr::targets::rustc_version());