This is only active when the `doc_cfg` feature is active. The implicit cfg can be overridden via #[doc(cfg(...))], so e.g. to hide a #[cfg] you can use something like: ```rust #[cfg(unix)] #[doc(cfg(all()))] pub struct Unix; ``` (since `all()` is always true, it is never shown in the docs)
7 lines
214 B
Rust
7 lines
214 B
Rust
// compile-flags:--cfg feature="worricow"
|
|
#![crate_name = "xenogenous"]
|
|
|
|
// @has 'xenogenous/struct.Worricow.html'
|
|
// @count - '//*[@class="stab portability"]' 0
|
|
#[cfg(feature = "worricow")]
|
|
pub struct Worricow;
|