Closed
Description
Given the following code:
#![crate_type = "lib"]
pub mod inner {
pub struct S;
}
#[doc(inline)]
#[doc(no_inline)]
pub use inner::S;
Rustdoc will generate
This is bogus: rustdoc is ignoring one of the attributes. Instead, it should give an error that you can't apply both attributes to the same item.
Thought of while reviewing #80267.