rust/tests/rustdoc/feature-gate-doc_auto_cfg.rs

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

9 lines
173 B
Rust
Raw Normal View History

#![feature(doc_cfg)]
#![crate_name = "foo"]
//@ has foo/fn.foo.html
//@ count - '//*[@class="item-info"]/*[@class="stab portability"]' 0
#[cfg(not(test))]
pub fn foo() {}