Remove a 2015 dyn test case
diff --git a/src/path.rs b/src/path.rs
index 39de518..6e891b9 100644
--- a/src/path.rs
+++ b/src/path.rs
@@ -446,10 +446,6 @@
}
fn parse_helper(input: ParseStream, expr_style: bool) -> Result<Self> {
- if input.peek(Token![dyn]) {
- return Err(input.error("expected path"));
- }
-
Ok(Path {
leading_colon: input.parse()?,
segments: {
diff --git a/tests/common/mod.rs b/tests/common/mod.rs
index 8593c01..c066510 100644
--- a/tests/common/mod.rs
+++ b/tests/common/mod.rs
@@ -54,6 +54,8 @@
// Deprecated placement syntax
"tests/rust/src/test/run-pass/new-box-syntax.rs" |
"tests/rust/src/test/ui/obsolete-in-place/bad.rs" |
+ // 2015-style dyn that libsyntax rejects
+ "tests/rust/src/test/ui/dyn-keyword/dyn-2015-no-warnings-without-lints.rs" |
// not actually test cases
"tests/rust/src/test/run-pass/macros/auxiliary/macro-comma-support.rs" |
"tests/rust/src/test/run-pass/macros/auxiliary/macro-include-items-expr.rs" |