mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 21:15:18 +03:00
11 lines
211 B
Rust
11 lines
211 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)))]
|
|
pub fn foo() {}
|