diff options
Diffstat (limited to 'tests/rustdoc/internal.rs')
-rw-r--r-- | tests/rustdoc/internal.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/rustdoc/internal.rs b/tests/rustdoc/internal.rs new file mode 100644 index 000000000..caad43a08 --- /dev/null +++ b/tests/rustdoc/internal.rs @@ -0,0 +1,18 @@ +// compile-flags: -Z force-unstable-if-unmarked + +// Check that the unstable marker is not added for "rustc_private". + +// @!matches internal/index.html \ +// '//*[@class="item-right docblock-short"]/span[@class="stab unstable"]' \ +// '' +// @!matches internal/index.html \ +// '//*[@class="item-right docblock-short"]/span[@class="stab internal"]' \ +// '' +// @matches - '//*[@class="item-right docblock-short"]' 'Docs' + +// @!has internal/struct.S.html '//*[@class="stab unstable"]' '' +// @!has internal/struct.S.html '//*[@class="stab internal"]' '' +/// Docs +pub struct S; + +fn main() {} |