mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
12 lines
190 B
Rust
12 lines
190 B
Rust
|
#![feature(doc_cfg_hide)]
|
||
|
#![deny(warnings)]
|
||
|
|
||
|
#![doc(cfg_hide = "test")] //~ ERROR
|
||
|
//~^ WARN
|
||
|
#![doc(cfg_hide)] //~ ERROR
|
||
|
//~^ WARN
|
||
|
|
||
|
#[doc(cfg_hide(doc))] //~ ERROR
|
||
|
//~^ WARN
|
||
|
pub fn foo() {}
|