mirror of https://github.com/rust-lang/rust.git
15 lines
296 B
Rust
15 lines
296 B
Rust
// Check warning for wrong `cfg(version("1.27"))` syntax
|
|
//
|
|
//@ check-pass
|
|
//@ no-auto-check-cfg
|
|
//@ compile-flags: --check-cfg=cfg()
|
|
//@ run-rustfix
|
|
|
|
#![feature(cfg_version)]
|
|
|
|
#[cfg(not(version("1.48.0")))]
|
|
//~^ WARNING unexpected `cfg` condition name: `version`
|
|
pub fn g() {}
|
|
|
|
pub fn main() {}
|