Move some rustdoc-ui tests to subdirectories
This commit is contained in:
parent
572c0d553f
commit
5fa975142f
145 changed files with 40 additions and 29 deletions
13
tests/rustdoc-ui/doctest/doc-test-doctest-feature.rs
Normal file
13
tests/rustdoc-ui/doctest/doc-test-doctest-feature.rs
Normal file
|
@ -0,0 +1,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;
|
Loading…
Add table
Add a link
Reference in a new issue