blob: 48ed4342235ca22c435edecec9cc315ff9c8b41c [file] [log] [blame] [edit]
//! Test the behaviour of `cfg(any())` and `cfg(all())`
#[cfg(any())] // Equivalent to cfg(false)
struct Disabled;
#[cfg(all())] // Equivalent to cfg(true)
struct Enabled;
fn main() {
let _ = Disabled; //~ ERROR: cannot find value `Disabled`
let _ = Enabled; // ok
}