rust/tests/rustdoc/cfg-doctest.rs

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

7 lines
199 B
Rust
Raw Normal View History

//@ !has cfg_doctest/struct.SomeStruct.html
//@ !has cfg_doctest/index.html '//a/@href' 'struct.SomeStruct.html'
/// Sneaky, this isn't actually part of docs.
#[cfg(doctest)]
pub struct SomeStruct;