about summary refs log tree commit diff
path: root/src/test/ui/rustdoc/doc-inline-extern-crate.rs
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2021-06-05 21:16:19 -0400
committerJoshua Nelson <jyn514@gmail.com>2021-06-05 21:18:20 -0400
commitb8ebf4431e48abe6f1844b80416c11f7b0ccab0c (patch)
tree2122bb059bf1014275cb0173604b961670084eb7 /src/test/ui/rustdoc/doc-inline-extern-crate.rs
parent34b9932f5c0f519d6b9b9f95f21723142c5dc877 (diff)
downloadrust-b8ebf4431e48abe6f1844b80416c11f7b0ccab0c.tar.gz
rust-b8ebf4431e48abe6f1844b80416c11f7b0ccab0c.zip
Don't fire `invalid_doc_attributes` on `extern crate` items
Diffstat (limited to 'src/test/ui/rustdoc/doc-inline-extern-crate.rs')
-rw-r--r--src/test/ui/rustdoc/doc-inline-extern-crate.rs9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/test/ui/rustdoc/doc-inline-extern-crate.rs b/src/test/ui/rustdoc/doc-inline-extern-crate.rs
new file mode 100644
index 00000000000..0eb4c149060
--- /dev/null
+++ b/src/test/ui/rustdoc/doc-inline-extern-crate.rs
@@ -0,0 +1,9 @@
+#[doc(inline)]
+//~^ ERROR conflicting
+#[doc(no_inline)]
+pub extern crate core;
+
+// no warning
+pub extern crate alloc;
+
+fn main() {}