]> git.lizzy.rs Git - rust.git/blob - src/test/ui/cfg/cfg-match-arm.rs
Rollup merge of #105758 - Nilstrieb:typeck-results-mod, r=compiler-errors
[rust.git] / src / test / ui / cfg / cfg-match-arm.rs
1 // run-pass
2 #![allow(dead_code)]
3 // pretty-expanded FIXME #23616
4
5 enum Foo {
6     Bar,
7     Baz,
8 }
9
10 fn foo(f: Foo) {
11     match f {
12         Foo::Bar => {},
13         #[cfg(not(asdfa))]
14         Foo::Baz => {},
15         #[cfg(afsd)]
16         Basdfwe => {}
17     }
18 }
19
20 pub fn main() {}