File tree Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Expand file tree Collapse file tree 2 files changed +33
-0
lines changed Original file line number Diff line number Diff line change 1+ #![ deny( unused_attributes) ]
2+
3+ #[ doc( alias = "A" ) ]
4+ #[ doc( alias = "A" ) ] //~ ERROR
5+ #[ doc( alias = "B" ) ]
6+ #[ doc( alias( "B" ) ) ] //~ ERROR
7+ pub struct Foo ;
8+
9+ fn main ( ) { }
Original file line number Diff line number Diff line change 1+ error: doc alias is duplicated
2+ --> $DIR/duplicate_doc_alias.rs:4:7
3+ |
4+ LL | #[doc(alias = "A")]
5+ | ----------- first defined here
6+ LL | #[doc(alias = "A")]
7+ | ^^^^^^^^^^^
8+ |
9+ note: the lint level is defined here
10+ --> $DIR/duplicate_doc_alias.rs:1:9
11+ |
12+ LL | #![deny(unused_attributes)]
13+ | ^^^^^^^^^^^^^^^^^
14+
15+ error: doc alias is duplicated
16+ --> $DIR/duplicate_doc_alias.rs:6:13
17+ |
18+ LL | #[doc(alias = "B")]
19+ | ----------- first defined here
20+ LL | #[doc(alias("B"))]
21+ | ^^^
22+
23+ error: aborting due to 2 previous errors
24+
You can’t perform that action at this time.
0 commit comments