mirror of
https://github.com/rust-lang/rust.git
synced 2025-09-28 13:46:03 +00:00
12 lines
272 B
Rust
12 lines
272 B
Rust
#![feature(doc_cfg)]
|
|
|
|
#[doc(cfg(), cfg(foo, bar))]
|
|
//~^ ERROR
|
|
//~^^ ERROR
|
|
#[doc(cfg(foo), cfg(bar))]
|
|
//~^ WARN unexpected `cfg` condition name: `foo`
|
|
//~^^ WARN unexpected `cfg` condition name: `bar`
|
|
#[doc(cfg())] //~ ERROR
|
|
#[doc(cfg(foo, bar))] //~ ERROR
|
|
pub fn foo() {}
|