blob: b78e3f1b932c2cbaa4dc2db81955c9035536e563 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
// This test ensures that even though private items are removed from generated docs,
// their `cfg`s will still impact their child items.
#![feature(doc_cfg)]
#![crate_name = "foo"]
pub struct X;
#[cfg(not(feature = "blob"))]
fn foo() {
impl X {
//@ has 'foo/struct.X.html'
//@ has - '//*[@class="stab portability"]' 'Available on non-crate feature blob only.'
pub fn bar() {}
}
}
|