-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-cfg_version`#![feature(cfg_version)]``#![feature(cfg_version)]`requires-nightlyThis issue requires a nightly compiler in some way.This issue requires a nightly compiler in some way.
Description
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.
Metadata
Metadata
Assignees
Labels
C-bugCategory: This is a bug.Category: This is a bug.F-cfg_version`#![feature(cfg_version)]``#![feature(cfg_version)]`requires-nightlyThis issue requires a nightly compiler in some way.This issue requires a nightly compiler in some way.