0
0
mirror of https://github.com/rust-lang/rust.git synced 2024-11-25 04:06:55 +01:00
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() {}