about summary refs log tree commit diff
path: root/tests/ui/rustdoc/feature-gate-doc_primitive.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ui/rustdoc/feature-gate-doc_primitive.rs')
-rw-r--r--tests/ui/rustdoc/feature-gate-doc_primitive.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/ui/rustdoc/feature-gate-doc_primitive.rs b/tests/ui/rustdoc/feature-gate-doc_primitive.rs
index 78fcd90752e..dbf92f19378 100644
--- a/tests/ui/rustdoc/feature-gate-doc_primitive.rs
+++ b/tests/ui/rustdoc/feature-gate-doc_primitive.rs
@@ -1,5 +1,7 @@
 #[rustc_doc_primitive = "usize"]
-//~^ ERROR `rustc_doc_primitive` is a rustc internal attribute
+//~^ ERROR use of an internal attribute [E0658]
+//~| NOTE the `#[rustc_doc_primitive]` attribute is an internal implementation detail that will never be stable
+//~| NOTE the `#[rustc_doc_primitive]` attribute is used by the standard library to provide a way to generate documentation for primitive types
 /// Some docs
 mod usize {}