]> git.lizzy.rs Git - rust.git/blob - tests/ui/thir-print/thir-tree-match.rs
Auto merge of #107443 - cjgillot:generator-less-query, r=compiler-errors
[rust.git] / tests / ui / thir-print / thir-tree-match.rs
1 // check-pass
2 // compile-flags: -Zunpretty=thir-tree
3
4 enum Bar {
5     First,
6     Second,
7     Third,
8 }
9
10 enum Foo {
11     FooOne(Bar),
12     FooTwo,
13 }
14
15 fn has_match(foo: Foo) -> bool {
16     match foo {
17         Foo::FooOne(Bar::First) => true,
18         Foo::FooOne(_) => false,
19         Foo::FooTwo => true,
20     }
21 }
22
23 fn main() {}