rust/tests/rustdoc-ui/cfg-boolean-literal.rs
2025-04-03 18:10:48 +00:00

18 lines
228 B
Rust

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