Skip to content

Commit 3bce66f

Browse files
committed
add test
1 parent 90e4c13 commit 3bce66f

File tree

3 files changed

+406
-54
lines changed

3 files changed

+406
-54
lines changed

tests/ui/thir-tree-match.rs

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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() {}

0 commit comments

Comments
 (0)