rust/tests/ui/rustdoc/duplicate_doc_alias.rs

10 lines
158 B
Rust
Raw Normal View History

2021-10-01 13:54:50 -05:00
#![deny(unused_attributes)]
#[doc(alias = "A")]
#[doc(alias = "A")] //~ ERROR
#[doc(alias = "B")]
#[doc(alias("B"))] //~ ERROR
pub struct Foo;
fn main() {}