mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-24 07:44:10 +00:00
14 lines
322 B
Rust
14 lines
322 B
Rust
// 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() {}
|