rust/tests/rustdoc-ui/feature-gate-doc_cfg_hide.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
154 B
Rust
Raw Normal View History

#![doc(cfg_hide(test))]
//~^ ERROR `#[doc(cfg_hide)]` is experimental
#[cfg(not(test))]
pub fn public_fn() {}
#[cfg(test)]
pub fn internal_use_only() {}