summaryrefslogtreecommitdiffstats
path: root/src/test/ui/rustdoc/feature-gate-doc_primitive.stderr
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/ui/rustdoc/feature-gate-doc_primitive.stderr')
-rw-r--r--src/test/ui/rustdoc/feature-gate-doc_primitive.stderr12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/test/ui/rustdoc/feature-gate-doc_primitive.stderr b/src/test/ui/rustdoc/feature-gate-doc_primitive.stderr
new file mode 100644
index 000000000..736bf29c5
--- /dev/null
+++ b/src/test/ui/rustdoc/feature-gate-doc_primitive.stderr
@@ -0,0 +1,12 @@
+warning: `doc(primitive)` should never have been stable
+ --> $DIR/feature-gate-doc_primitive.rs:2:7
+ |
+LL | #[doc(primitive = "usize")]
+ | ^^^^^^^^^^^^^^^^^^^
+ |
+ = note: `#[warn(invalid_doc_attributes)]` on by default
+ = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
+ = note: for more information, see issue #82730 <https://github.com/rust-lang/rust/issues/82730>
+
+warning: 1 warning emitted
+