about summary refs log tree commit diff
path: root/tests/rustdoc-ui/doctest/rustflags.rs
blob: f030158cdaa49242376f0a574b4bc6e7d9b4dd60 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ check-pass
//@ compile-flags: --test -Zunstable-options --doctest-build-arg=--cfg=testcase_must_be_present
//@ normalize-stdout: "tests/rustdoc-ui/doctest" -> "$$DIR"
//@ normalize-stdout: "finished in \d+\.\d+s" -> "finished in $$TIME"

/// ```
/// #[cfg(testcase_must_be_present)]
/// fn must_be_present() {}
///
/// fn main() { must_be_present() }
/// ```
pub struct Bar;