]>
git.proxmox.com Git - rustc.git/blob - src/test/rustdoc-ui/cfg-test.rs
1 // build-pass (FIXME(62277): could be check-pass?)
2 // compile-flags:--test --test-args --test-threads=1
3 // normalize-stdout-test: "src/test/rustdoc-ui" -> "$$DIR"
5 // Crates like core have doctests gated on `cfg(not(test))` so we need to make
6 // sure `cfg(test)` is not active when running `rustdoc --test`.
8 #![feature(cfg_doctest)]
10 /// this doctest will be ignored:
18 /// this doctest will be tested:
26 /// this doctest will be tested, but will not appear in documentation: