diff options
Diffstat (limited to 'tests/pretty/issue-19077.rs')
-rw-r--r-- | tests/pretty/issue-19077.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/pretty/issue-19077.rs b/tests/pretty/issue-19077.rs new file mode 100644 index 000000000..0d2702804 --- /dev/null +++ b/tests/pretty/issue-19077.rs @@ -0,0 +1,11 @@ +// +// Testing that unsafe blocks in match arms are followed by a comma +// pp-exact +fn main() { + match true { + true if true => (), + false if false => unsafe {}, + true => {} + false => (), + } +} |