Files
rust/tests/rustdoc-ui/doc-cfg.rs
2026-06-26 12:27:24 +02:00

11 lines
221 B
Rust

#![deny(invalid_doc_attributes)]
#![feature(doc_cfg)]
#[doc(cfg(), cfg(foo, bar))]
//~^ ERROR
//~| ERROR
#[doc(cfg())] //~ ERROR
#[doc(cfg(foo, bar))] //~ ERROR
#[doc(auto_cfg(hide(foo::bar)))] //~ ERROR
pub fn foo() {}