]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/internal.rs
Rollup merge of #106470 - ehuss:tidy-no-wasm, r=Mark-Simulacrum
[rust.git] / tests / rustdoc / internal.rs
1 // compile-flags: -Z force-unstable-if-unmarked
2
3 // Check that the unstable marker is not added for "rustc_private".
4
5 // @!matches internal/index.html \
6 //      '//*[@class="item-right docblock-short"]/span[@class="stab unstable"]' \
7 //      ''
8 // @!matches internal/index.html \
9 //      '//*[@class="item-right docblock-short"]/span[@class="stab internal"]' \
10 //      ''
11 // @matches - '//*[@class="item-right docblock-short"]' 'Docs'
12
13 // @!has internal/struct.S.html '//*[@class="stab unstable"]' ''
14 // @!has internal/struct.S.html '//*[@class="stab internal"]' ''
15 /// Docs
16 pub struct S;
17
18 fn main() {}