rust/tests/ui/rustdoc/cfg-rustdoc.rs
2023-01-11 09:32:08 +00:00

7 lines
70 B
Rust

#[cfg(doc)]
pub struct Foo;
fn main() {
let f = Foo; //~ ERROR
}