summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc/feature-gate-doc_auto_cfg.rs
blob: da76381e4800064b7b3327bf62693605b44e4e65 (plain)
1
2
3
4
5
6
7
8
#![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() {}