rust/tests/ui/cfg/auxiliary/cfged_out.rs

23 lines
420 B
Rust

pub mod inner {
#[cfg(FALSE)]
pub fn uwu() {}
#[cfg(FALSE)]
pub mod doesnt_exist {
pub fn hello() {}
}
pub mod wrong {
#[cfg(feature = "suggesting me fails the test!!")]
pub fn meow() {}
}
pub mod right {
#[cfg(feature = "what-a-cool-feature")]
pub fn meow() {}
}
}
#[cfg(i_dont_exist_and_you_can_do_nothing_about_it)]
pub fn vanished() {}