rust/tests/ui/rustdoc/cfg-rustdoc.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
70 B
Rust
Raw Normal View History

#[cfg(doc)]
2019-09-06 08:51:52 +00:00
pub struct Foo;
fn main() {
let f = Foo; //~ ERROR
}