summaryrefslogtreecommitdiffstats
path: root/tests/ui/check-cfg/empty-names.rs
blob: 046ff0364e2716081e4ebd0f0dce900d03af5f71 (plain)
1
2
3
4
5
6
7
8
9
10
// Check warning for unexpected cfg
//
// check-pass
// compile-flags: --check-cfg=names() -Z unstable-options

#[cfg(unknown_key = "value")]
//~^ WARNING unexpected `cfg` condition name
pub fn f() {}

fn main() {}