about summary refs log tree commit diff
path: root/tests/rustdoc-ui/doc-attribute-unsupported.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-ui/doc-attribute-unsupported.rs')
-rw-r--r--tests/rustdoc-ui/doc-attribute-unsupported.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/doc-attribute-unsupported.rs b/tests/rustdoc-ui/doc-attribute-unsupported.rs
new file mode 100644
index 00000000000..3bd153117a9
--- /dev/null
+++ b/tests/rustdoc-ui/doc-attribute-unsupported.rs
@@ -0,0 +1,7 @@
+// This is currently not supported but should be!
+
+#![feature(rustdoc_internals)]
+
+#[doc(attribute = "diagnostic::do_not_recommend")] //~ ERROR
+/// bla
+mod yup {}