mirror of
https://github.com/allankoechke/rust.git
synced 2026-12-02 17:44:28 +00:00
11 lines
221 B
Rust
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() {}
|