summaryrefslogtreecommitdiffstats
path: root/tests/ui/check-cfg/concat-values.rs
blob: 0f9178ce6a5716bb0a8b90ff925a28c42bedf432 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// check-pass
// compile-flags: -Z unstable-options
// compile-flags: --check-cfg=cfg(my_cfg,values("foo")) --check-cfg=cfg(my_cfg,values("bar"))

#[cfg(my_cfg)]
//~^ WARNING unexpected `cfg` condition value
fn my_cfg() {}

#[cfg(my_cfg = "unk")]
//~^ WARNING unexpected `cfg` condition value
fn my_cfg() {}

fn main() {}