blob: 9c1f4936eab31ee2eb1616a2efc290825acf3012 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
// check-pass
// compile-flags:--test
// normalize-stdout-test: "tests/rustdoc-ui/doctest" -> "$$DIR"
// normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
// Make sure `cfg(doctest)` is set when finding doctests but not inside
// the doctests.
/// ```
/// assert!(!cfg!(doctest));
/// ```
#[cfg(doctest)]
pub struct Foo;
|