From 75cbd05d19a7cfb0819f15a57f2561cd28a956a7 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Fri, 13 Jun 2025 21:02:26 +0200 Subject: Add tests for `doc(attribute = "...")` attribute --- tests/rustdoc-gui/src/test_docs/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests/rustdoc-gui/src/test_docs') diff --git a/tests/rustdoc-gui/src/test_docs/lib.rs b/tests/rustdoc-gui/src/test_docs/lib.rs index 623f5b33e9b..42f2fbd93b1 100644 --- a/tests/rustdoc-gui/src/test_docs/lib.rs +++ b/tests/rustdoc-gui/src/test_docs/lib.rs @@ -161,6 +161,10 @@ pub enum AnEnum { /// Some keyword. pub mod keyword {} +#[doc(attribute = "forbid")] +/// Some attribute. +pub mod repr {} + /// Just some type alias. pub type SomeType = u32; -- cgit 1.4.1-3-g733a5