summaryrefslogtreecommitdiffstats
path: root/tests/ui/rustdoc/doc-alias-crate-level.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rustdoc/doc-alias-crate-level.rs')
-rw-r--r--tests/ui/rustdoc/doc-alias-crate-level.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/ui/rustdoc/doc-alias-crate-level.rs b/tests/ui/rustdoc/doc-alias-crate-level.rs
new file mode 100644
index 000000000..c7783aae5
--- /dev/null
+++ b/tests/ui/rustdoc/doc-alias-crate-level.rs
@@ -0,0 +1,8 @@
+// compile-flags: -Zdeduplicate-diagnostics=no
+
+#![crate_type = "lib"]
+
+#![doc(alias = "not working!")] //~ ERROR
+
+#[doc(alias = "shouldn't work!")] //~ ERROR
+pub struct Foo;