From 853f6974767243e2e5defb43f5f7195ce1fb1cc7 Mon Sep 17 00:00:00 2001 From: Vadim Petrochenkov Date: Thu, 19 Jan 2017 13:28:45 +0300 Subject: Fix regression in parsing of trait object types --- src/test/parse-fail/bounds-obj-parens.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/test/parse-fail/bounds-obj-parens.rs (limited to 'src/test/parse-fail') diff --git a/src/test/parse-fail/bounds-obj-parens.rs b/src/test/parse-fail/bounds-obj-parens.rs new file mode 100644 index 00000000000..cbdffb4a255 --- /dev/null +++ b/src/test/parse-fail/bounds-obj-parens.rs @@ -0,0 +1,15 @@ +// Copyright 2017 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 or the MIT license +// , at your +// option. This file may not be copied, modified, or distributed +// except according to those terms. + +// compile-flags: -Z parse-only + +type A = Box<(Fn(D::Error) -> E) + 'static + Send + Sync>; // OK + +FAIL //~ ERROR -- cgit 1.4.1-3-g733a5