about summary refs log tree commit diff
path: root/tests/ui/check-cfg/wrong-version-syntax.rs
blob: 221ecf4cae887ba8460fbe331b0ebac1b4c374a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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() {}