diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-04-03 05:56:27 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2015-04-03 05:56:27 +0300 |
| commit | e1be69b8a97d48d579b5474907aab9199d1b8ab7 (patch) | |
| tree | 211ed449785d7600bc2916f2faca1ad1211ee7a2 /src/test/parse-fail/pat-lt-bracket-2.rs | |
| parent | 80def6c2447d23a624e611417f24cf0ab2a5a676 (diff) | |
| download | rust-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.rs | 12 |
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 `<` |
