diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2016-08-26 19:23:42 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2016-09-13 23:33:50 +0300 |
| commit | b57f1099b577d4d388cc5236fb6990275c028b5b (patch) | |
| tree | 2ec9f55ae4637defa70b6a1f0212313051d4557e /src/test/parse-fail | |
| parent | 03161e9b12621364d44b7fb85694ddf9901ce50f (diff) | |
| download | rust-b57f1099b577d4d388cc5236fb6990275c028b5b.tar.gz rust-b57f1099b577d4d388cc5236fb6990275c028b5b.zip | |
Remove parsing of obsolete pre-1.0 syntaxes
Diffstat (limited to 'src/test/parse-fail')
| -rw-r--r-- | src/test/parse-fail/obsolete-closure-kind.rs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/test/parse-fail/obsolete-closure-kind.rs b/src/test/parse-fail/obsolete-closure-kind.rs deleted file mode 100644 index 89134e806a7..00000000000 --- a/src/test/parse-fail/obsolete-closure-kind.rs +++ /dev/null @@ -1,18 +0,0 @@ -// 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. - -// Test that we generate obsolete syntax errors around usages of closure kinds: `|:|`, `|&:|` and -// `|&mut:|`. - -fn main() { - let a = |:| {}; //~ ERROR obsolete syntax: `:`, `&mut:`, or `&:` - let a = |&:| {}; //~ ERROR obsolete syntax: `:`, `&mut:`, or `&:` - let a = |&mut:| {}; //~ ERROR obsolete syntax: `:`, `&mut:`, or `&:` -} |
