]> git.proxmox.com Git - rustc.git/blob - src/test/rustdoc/issue-32374.rs
New upstream version 1.45.0+dfsg1
[rustc.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"]/span[@class="stab deprecated"]' \
7 // 'Deprecated'
8 // @matches issue_32374/index.html '//*[@class="docblock-short"]/span[@class="stab unstable"]' \
9 // 'Experimental'
10 // @matches issue_32374/index.html '//*[@class="docblock-short"]/text()' 'Docs'
11
12 // @has issue_32374/struct.T.html '//*[@class="stab deprecated"]' \
13 // '👎 Deprecated since 1.0.0: text'
14 // @has - '<code>test</code>&nbsp;<a href="http://issue_url/32374">#32374</a>'
15 // @matches issue_32374/struct.T.html '//*[@class="stab unstable"]' \
16 // '🔬 This is a nightly-only experimental API. \(test\s#32374\)$'
17 /// Docs
18 #[rustc_deprecated(since = "1.0.0", reason = "text")]
19 #[unstable(feature = "test", issue = "32374")]
20 pub struct T;
21
22 // @has issue_32374/struct.U.html '//*[@class="stab deprecated"]' \
23 // '👎 Deprecated since 1.0.0: deprecated'
24 // @has issue_32374/struct.U.html '//*[@class="stab unstable"]' \
25 // '🔬 This is a nightly-only experimental API. (test #32374)'
26 // @has issue_32374/struct.U.html '//details' \
27 // '🔬 This is a nightly-only experimental API. (test #32374)'
28 // @has issue_32374/struct.U.html '//summary' \
29 // '🔬 This is a nightly-only experimental API. (test #32374)'
30 // @has issue_32374/struct.U.html '//details/p' \
31 // 'unstable'
32 #[rustc_deprecated(since = "1.0.0", reason = "deprecated")]
33 #[unstable(feature = "test", issue = "32374", reason = "unstable")]
34 pub struct U;