diff options
Diffstat (limited to 'src/test/ui/parser/match-arrows-block-then-binop.rs')
-rw-r--r-- | src/test/ui/parser/match-arrows-block-then-binop.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/test/ui/parser/match-arrows-block-then-binop.rs b/src/test/ui/parser/match-arrows-block-then-binop.rs new file mode 100644 index 000000000..56c917c74 --- /dev/null +++ b/src/test/ui/parser/match-arrows-block-then-binop.rs @@ -0,0 +1,7 @@ +fn main() { + let _ = match 0 { + 0 => { + 0 + } + 5 //~ ERROR expected pattern, found `+` + }; +} |