summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-ui/feature-gate-doc_cfg_hide.rs
blob: 17812018b9b7a156c08791ad4ae1e58a9124271f (plain)
1
2
3
4
5
6
7
#![doc(cfg_hide(test))]
//~^ ERROR `#[doc(cfg_hide)]` is experimental

#[cfg(not(test))]
pub fn public_fn() {}
#[cfg(test)]
pub fn internal_use_only() {}