]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/issue-32374.rs
Rollup merge of #57667 - ishitatsuyuki:p-leak, r=nnethercote
[rust.git] / src / test / rustdoc / issue-32374.rs
1 #![feature(staged_api)]
2 #![doc(issue_tracker_base_url = "http://issue_url/")]
3
4 #![unstable(feature="test", issue = "32374")]
5
6 // @matches issue_32374/index.html '//*[@class="docblock-short"]' \
7 //      '^\[Deprecated\] \[Experimental\] Docs'
8
9 // @has issue_32374/struct.T.html '//*[@class="stab deprecated"]' \
10 //      'Deprecated since 1.0.0: text'
11 // @has - '<code>test</code>&nbsp;<a href="http://issue_url/32374">#32374</a>'
12 // @matches issue_32374/struct.T.html '//*[@class="stab unstable"]' \
13 //      '🔬 This is a nightly-only experimental API. \(test\s#32374\)$'
14 /// Docs
15 #[rustc_deprecated(since = "1.0.0", reason = "text")]
16 #[unstable(feature = "test", issue = "32374")]
17 pub struct T;
18
19 // @has issue_32374/struct.U.html '//*[@class="stab deprecated"]' \
20 //      'Deprecated since 1.0.0: deprecated'
21 // @has issue_32374/struct.U.html '//*[@class="stab unstable"]' \
22 //      '🔬 This is a nightly-only experimental API. (test #32374)'
23 // @has issue_32374/struct.U.html '//details' \
24 //      '🔬 This is a nightly-only experimental API. (test #32374)'
25 // @has issue_32374/struct.U.html '//summary' \
26 //      '🔬 This is a nightly-only experimental API. (test #32374)'
27 // @has issue_32374/struct.U.html '//details/p' \
28 //      'unstable'
29 #[rustc_deprecated(since = "1.0.0", reason = "deprecated")]
30 #[unstable(feature = "test", issue = "32374", reason = "unstable")]
31 pub struct U;