about summary refs log tree commit diff
path: root/tests/ui/parser/pat-lt-bracket-1.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/pat-lt-bracket-1.rs')
-rw-r--r--tests/ui/parser/pat-lt-bracket-1.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/ui/parser/pat-lt-bracket-1.rs b/tests/ui/parser/pat-lt-bracket-1.rs
new file mode 100644
index 00000000000..2e2001434f2
--- /dev/null
+++ b/tests/ui/parser/pat-lt-bracket-1.rs
@@ -0,0 +1,7 @@
+fn main() {
+  match 42 {
+    x < 7 => (),
+   //~^ error: expected one of `=>`, `@`, `if`, or `|`, found `<`
+    _ => ()
+  }
+}