rust/tests/rustdoc/feature-gate-doc_auto_cfg.rs
2023-01-11 09:32:08 +00: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() {}