mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-06 20:13:42 +00:00
10 lines
180 B
Rust
10 lines
180 B
Rust
![]() |
#![feature(doc_cfg)]
|
||
|
|
||
|
#[doc(cfg(), cfg(foo, bar))]
|
||
|
//~^ ERROR
|
||
|
//~^^ ERROR
|
||
|
#[doc(cfg(foo), cfg(bar))] // ok!
|
||
|
#[doc(cfg())] //~ ERROR
|
||
|
#[doc(cfg(foo, bar))] //~ ERROR
|
||
|
pub fn foo() {}
|