diff options
Diffstat (limited to '')
-rw-r--r-- | src/test/ui/consts/const-match-pattern-arm.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/test/ui/consts/const-match-pattern-arm.rs b/src/test/ui/consts/const-match-pattern-arm.rs new file mode 100644 index 000000000..90680c019 --- /dev/null +++ b/src/test/ui/consts/const-match-pattern-arm.rs @@ -0,0 +1,15 @@ +// check-pass + +const _: bool = match Some(true) { + Some(value) => true, + _ => false +}; + +const _: bool = { + match Some(true) { + Some(value) => true, + _ => false + } +}; + +fn main() {} |