about summary refs log tree commit diff
path: root/tests/ui/parser/bad-match.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/bad-match.rs')
-rw-r--r--tests/ui/parser/bad-match.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/ui/parser/bad-match.rs b/tests/ui/parser/bad-match.rs
new file mode 100644
index 00000000000..04100d1701d
--- /dev/null
+++ b/tests/ui/parser/bad-match.rs
@@ -0,0 +1,4 @@
+fn main() {
+  let isize x = 5; //~ ERROR expected one of `:`, `;`, `=`, `@`, or `|`, found `x`
+  match x;
+}