]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-ui/check-cfg-test.rs
Rollup merge of #106638 - RalfJung:realstd, r=thomcc
[rust.git] / tests / rustdoc-ui / check-cfg-test.rs
1 // check-pass
2 // compile-flags: --test --nocapture --check-cfg=values(feature,"test") -Z unstable-options
3 // normalize-stderr-test: "tests/rustdoc-ui" -> "$$DIR"
4 // normalize-stdout-test: "tests/rustdoc-ui" -> "$$DIR"
5 // normalize-stdout-test "finished in \d+\.\d+s" -> "finished in $$TIME"
6
7 /// The doctest will produce a warning because feature invalid is unexpected
8 /// ```
9 /// #[cfg(feature = "invalid")]
10 /// assert!(false);
11 /// ```
12 pub struct Foo;