mirror of
https://github.com/rust-lang/rust
synced 2024-11-05 20:45:15 +00:00
12 lines
347 B
Rust
12 lines
347 B
Rust
// #120427
|
|
// This test checks that when a single cfg has a value for user's specified name
|
|
//
|
|
//@ check-pass
|
|
//@ compile-flags: -Z unstable-options
|
|
//@ compile-flags: --check-cfg=cfg(foo,values("my_value")) --check-cfg=cfg(bar,values("my_value"))
|
|
|
|
#[cfg(my_value)]
|
|
//~^ WARNING unexpected `cfg` condition name: `my_value`
|
|
fn x() {}
|
|
|
|
fn main() {}
|