rust/tests/ui/cfg/cfg-match-arm.rs
2025-04-03 21:41:58 +00:00

19 lines
243 B
Rust

//@ run-pass
#![allow(dead_code)]
enum Foo {
Bar,
Baz,
}
fn foo(f: Foo) {
match f {
Foo::Bar => {},
#[cfg(not(FALSE))]
Foo::Baz => {},
#[cfg(false)]
Basdfwe => {}
}
}
pub fn main() {}