rust/tests/rustdoc-ui/cfg-boolean-literal.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
228 B
Rust
Raw Permalink Normal View History

//@ 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() {}