mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 15:01:51 +00:00
14 lines
424 B
Rust
14 lines
424 B
Rust
// Check warning for unexpected cfg value
|
|
//
|
|
// check-pass
|
|
// revisions: empty_values empty_cfg without_names
|
|
// [empty_values]compile-flags: --check-cfg=values() -Z unstable-options
|
|
// [empty_cfg]compile-flags: --check-cfg=cfg() -Z unstable-options
|
|
// [without_names]compile-flags: --check-cfg=cfg(any()) -Z unstable-options
|
|
|
|
#[cfg(test = "value")]
|
|
//~^ WARNING unexpected `cfg` condition value
|
|
pub fn f() {}
|
|
|
|
fn main() {}
|