I tried this code:
#![feature(cfg_version)]
#[cfg(version("aa.0"))]
mod foo {}
I expected to see this happen: error or warning about invalid version literal
Instead, this happened: no error or warning
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=3f14787508e791c693ac85bf41973b97
Mentioning @mibac138 who implemented #[cfg(version)] in #71314.
I tried this code:
I expected to see this happen: error or warning about invalid version literal
Instead, this happened: no error or warning
https://play.rust-lang.org/?version=nightly&mode=debug&edition=2018&gist=3f14787508e791c693ac85bf41973b97
Mentioning @mibac138 who implemented
#[cfg(version)]in #71314.