summaryrefslogtreecommitdiffstats
path: root/tests/ui/parser/obsolete-syntax-impl-for-dotdot.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/parser/obsolete-syntax-impl-for-dotdot.rs')
-rw-r--r--tests/ui/parser/obsolete-syntax-impl-for-dotdot.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ui/parser/obsolete-syntax-impl-for-dotdot.rs b/tests/ui/parser/obsolete-syntax-impl-for-dotdot.rs
new file mode 100644
index 000000000..e928f09aa
--- /dev/null
+++ b/tests/ui/parser/obsolete-syntax-impl-for-dotdot.rs
@@ -0,0 +1,9 @@
+trait Trait1 {}
+trait Trait2 {}
+
+#[cfg(not_enabled)]
+impl Trait1 for .. {}
+
+impl Trait2 for .. {} //~ ERROR `impl Trait for .. {}` is an obsolete syntax
+
+fn main() {}