rust/tests/rustdoc/feature-gate-doc_auto_cfg.rs
2024-06-24 11:08:41 +02:00

9 lines
173 B
Rust

#![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() {}