about summary refs log tree commit diff
path: root/tests/ui/rustdoc/duplicate_doc_alias.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rustdoc/duplicate_doc_alias.stderr')
-rw-r--r--tests/ui/rustdoc/duplicate_doc_alias.stderr24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/ui/rustdoc/duplicate_doc_alias.stderr b/tests/ui/rustdoc/duplicate_doc_alias.stderr
new file mode 100644
index 00000000000..4b2dd1f8eb6
--- /dev/null
+++ b/tests/ui/rustdoc/duplicate_doc_alias.stderr
@@ -0,0 +1,24 @@
+error: doc alias is duplicated
+  --> $DIR/duplicate_doc_alias.rs:4:7
+   |
+LL | #[doc(alias = "A")]
+   |       ----------- first defined here
+LL | #[doc(alias = "A")]
+   |       ^^^^^^^^^^^
+   |
+note: the lint level is defined here
+  --> $DIR/duplicate_doc_alias.rs:1:9
+   |
+LL | #![deny(unused_attributes)]
+   |         ^^^^^^^^^^^^^^^^^
+
+error: doc alias is duplicated
+  --> $DIR/duplicate_doc_alias.rs:6:13
+   |
+LL | #[doc(alias = "B")]
+   |       ----------- first defined here
+LL | #[doc(alias("B"))]
+   |             ^^^
+
+error: aborting due to 2 previous errors
+