diff options
| author | Wonwoo Choi <chwo9843@gmail.com> | 2017-09-05 18:25:42 +0900 |
|---|---|---|
| committer | Wonwoo Choi <chwo9843@gmail.com> | 2017-09-05 18:25:42 +0900 |
| commit | 258ec30116b1a80f4a9fb4b14aa22dd88eb8bf31 (patch) | |
| tree | 48518456359974e635646609a63be0ca46db4233 /src/test/compile-fail | |
| parent | a3beb8fe61cb73c2eb3a2d47c87d3945a6f52865 (diff) | |
| download | rust-258ec30116b1a80f4a9fb4b14aa22dd88eb8bf31.tar.gz rust-258ec30116b1a80f4a9fb4b14aa22dd88eb8bf31.zip | |
Expect pipe symbol after closure parameter lists
Diffstat (limited to 'src/test/compile-fail')
| -rw-r--r-- | src/test/compile-fail/issue-44021.rs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/test/compile-fail/issue-44021.rs b/src/test/compile-fail/issue-44021.rs new file mode 100644 index 00000000000..b6ec21b94c7 --- /dev/null +++ b/src/test/compile-fail/issue-44021.rs @@ -0,0 +1,16 @@ +// Copyright 2014 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. + +struct MyStruct; +impl MyStruct { + fn f() {|x, y} //~ ERROR expected one of `:`, `@`, or `|`, found `}` +} + +fn main() {} |
