Remove potential cfgs duplicates
This commit is contained in:
parent
8f1bbd69e1
commit
a8ec6200df
2 changed files with 21 additions and 0 deletions
15
src/test/rustdoc/duplicate-cfg.rs
Normal file
15
src/test/rustdoc/duplicate-cfg.rs
Normal file
|
@ -0,0 +1,15 @@
|
|||
#![crate_name = "foo"]
|
||||
#![feature(doc_cfg)]
|
||||
|
||||
// @has 'foo/index.html'
|
||||
// @!has '-' '//*[@class="stab portability"]' 'feature="sync" and'
|
||||
// @has '-' '//*[@class="stab portability"]' 'feature="sync"'
|
||||
#[doc(cfg(feature = "sync"))]
|
||||
#[doc(cfg(feature = "sync"))]
|
||||
pub struct Foo;
|
||||
|
||||
#[doc(cfg(feature = "sync"))]
|
||||
pub mod bar {
|
||||
#[doc(cfg(feature = "sync"))]
|
||||
pub struct Bar;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue