summaryrefslogtreecommitdiffstats
path: root/tests/ui/feature-gates/doc-rust-logo.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/ui/feature-gates/doc-rust-logo.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/ui/feature-gates/doc-rust-logo.rs b/tests/ui/feature-gates/doc-rust-logo.rs
new file mode 100644
index 000000000..e6a585129
--- /dev/null
+++ b/tests/ui/feature-gates/doc-rust-logo.rs
@@ -0,0 +1,5 @@
+#![doc(rust_logo)]
+//~^ ERROR the `#[doc(rust_logo)]` attribute is used for Rust branding
+//! This is not an official rust crate
+
+fn main() {}