summaryrefslogtreecommitdiffstats
path: root/tests/ui/rustdoc/cfg-rustdoc.rs
blob: dd8e1ed97c4d2fb89d89eef8cc3e79abb65d9a74 (plain)
1
2
3
4
5
6
#[cfg(doc)]
pub struct Foo;

fn main() {
    let f = Foo; //~ ERROR
}