]> git.lizzy.rs Git - rust.git/blob - src/test/ui/consts/const-match-pattern-arm.rs
Merge commit 'b40ea209e7f14c8193ddfc98143967b6a2f4f5c9' into clippyup
[rust.git] / src / test / ui / consts / const-match-pattern-arm.rs
1 // check-pass
2
3 const _: bool = match Some(true) {
4     Some(value) => true,
5     _ => false
6 };
7
8 const _: bool = {
9     match Some(true) {
10         Some(value) => true,
11         _ => false
12     }
13 };
14
15 fn main() {}