about summary refs log tree commit diff
path: root/tests/ui/feature-gates/feature-gate-rustdoc_internals.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/feature-gates/feature-gate-rustdoc_internals.rs')
-rw-r--r--tests/ui/feature-gates/feature-gate-rustdoc_internals.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/ui/feature-gates/feature-gate-rustdoc_internals.rs b/tests/ui/feature-gates/feature-gate-rustdoc_internals.rs
new file mode 100644
index 00000000000..58306a4cfc9
--- /dev/null
+++ b/tests/ui/feature-gates/feature-gate-rustdoc_internals.rs
@@ -0,0 +1,10 @@
+#[doc(keyword = "match")] //~ ERROR: `#[doc(keyword)]` is meant for internal use only
+/// wonderful
+mod foo {}
+
+trait Mine {}
+
+#[doc(fake_variadic)]  //~ ERROR: `#[doc(fake_variadic)]` is meant for internal use only
+impl<T> Mine for (T,) {}
+
+fn main() {}