about summary refs log tree commit diff
path: root/tests/rustdoc-ui/cfg-boolean-literal.rs
blob: 74808d066c7152adc11a28d5ed748977a0b0ed18 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
//@ check-pass

#![feature(doc_cfg)]

#[doc(cfg(false))]
pub fn foo() {}

#[doc(cfg(true))]
pub fn bar() {}

#[doc(cfg(any(true)))]
pub fn zoo() {}

#[doc(cfg(all(true)))]
pub fn toy() {}

#[doc(cfg(not(true)))]
pub fn nay() {}