]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-ui/check-cfg-test.rs
Rollup merge of #100206 - RalfJung:miri-terminfo, r=thomcc
[rust.git] / src / test / 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: "src/test/rustdoc-ui" -> "$$DIR"
4 // normalize-stdout-test: "src/test/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;