about summary refs log tree commit diff
path: root/src/test/parse-fail/pat-lt-bracket-2.rs
diff options
context:
space:
mode:
authorVadim Petrochenkov <vadim.petrochenkov@gmail.com>2015-04-03 05:56:27 +0300
committerVadim Petrochenkov <vadim.petrochenkov@gmail.com>2015-04-03 05:56:27 +0300
commite1be69b8a97d48d579b5474907aab9199d1b8ab7 (patch)
tree211ed449785d7600bc2916f2faca1ad1211ee7a2 /src/test/parse-fail/pat-lt-bracket-2.rs
parent80def6c2447d23a624e611417f24cf0ab2a5a676 (diff)
downloadrust-e1be69b8a97d48d579b5474907aab9199d1b8ab7.tar.gz
rust-e1be69b8a97d48d579b5474907aab9199d1b8ab7.zip
Add tests for parsing of patterns
Diffstat (limited to 'src/test/parse-fail/pat-lt-bracket-2.rs')
-rw-r--r--src/test/parse-fail/pat-lt-bracket-2.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/parse-fail/pat-lt-bracket-2.rs b/src/test/parse-fail/pat-lt-bracket-2.rs
new file mode 100644
index 00000000000..6a0653041d4
--- /dev/null
+++ b/src/test/parse-fail/pat-lt-bracket-2.rs
@@ -0,0 +1,12 @@
+// Copyright 2015 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+fn a(B<) {}
+   //~^ error: expected one of `:` or `@`, found `<`