about summary refs log tree commit diff
path: root/tests/rustdoc-ui/doc-attribute-unsupported.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-ui/doc-attribute-unsupported.stderr')
-rw-r--r--tests/rustdoc-ui/doc-attribute-unsupported.stderr10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/rustdoc-ui/doc-attribute-unsupported.stderr b/tests/rustdoc-ui/doc-attribute-unsupported.stderr
new file mode 100644
index 00000000000..e2480a548ac
--- /dev/null
+++ b/tests/rustdoc-ui/doc-attribute-unsupported.stderr
@@ -0,0 +1,10 @@
+error: nonexistent builtin attribute `diagnostic::do_not_recommend` used in `#[doc(attribute = "...")]`
+  --> $DIR/doc-attribute-unsupported.rs:5:19
+   |
+LL | #[doc(attribute = "diagnostic::do_not_recommend")]
+   |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+   |
+   = help: only existing builtin attributes are allowed in core/std
+
+error: aborting due to 1 previous error
+