]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/issue-32374.rs
Rollup merge of #93755 - ChayimFriedman2:allow-comparing-vecs-with-different-allocato...
[rust.git] / src / test / rustdoc / issue-32374.rs
1 #![feature(staged_api)]
2 #![doc(issue_tracker_base_url = "https://issue_url/")]
3 #![unstable(feature = "test", issue = "32374")]
4
5 // @matches issue_32374/index.html '//*[@class="item-left unstable deprecated module-item"]/span[@class="stab deprecated"]' \
6 //      'Deprecated'
7 // @matches issue_32374/index.html '//*[@class="item-left unstable deprecated module-item"]/span[@class="stab unstable"]' \
8 //      'Experimental'
9 // @matches issue_32374/index.html '//*[@class="item-right docblock-short"]/text()' 'Docs'
10
11 // @has issue_32374/struct.T.html '//*[@class="stab deprecated"]' \
12 //      '👎 Deprecated since 1.0.0: text'
13 // @has - '<code>test</code>&nbsp;<a href="https://issue_url/32374">#32374</a>'
14 // @matches issue_32374/struct.T.html '//*[@class="stab unstable"]' \
15 //      '🔬 This is a nightly-only experimental API. \(test\s#32374\)$'
16 /// Docs
17 #[rustc_deprecated(since = "1.0.0", reason = "text")]
18 #[unstable(feature = "test", issue = "32374")]
19 pub struct T;
20
21 // @has issue_32374/struct.U.html '//*[@class="stab deprecated"]' \
22 //      '👎 Deprecated since 1.0.0: deprecated'
23 // @has issue_32374/struct.U.html '//*[@class="stab unstable"]' \
24 //      '🔬 This is a nightly-only experimental API. (test #32374)'
25 #[rustc_deprecated(since = "1.0.0", reason = "deprecated")]
26 #[unstable(feature = "test", issue = "32374", reason = "unstable")]
27 pub struct U;