]> git.proxmox.com Git - rustc.git/blame - src/test/rustdoc/issue-32374.rs
Update upstream source from tag 'upstream/1.60.0+dfsg1'
[rustc.git] / src / test / rustdoc / issue-32374.rs
CommitLineData
a7813a04 1#![feature(staged_api)]
136023e0 2#![doc(issue_tracker_base_url = "https://issue_url/")]
3c0e092e 3#![unstable(feature = "test", issue = "32374")]
a7813a04 4
136023e0 5// @matches issue_32374/index.html '//*[@class="item-left unstable deprecated module-item"]/span[@class="stab deprecated"]' \
9fa01778 6// 'Deprecated'
136023e0 7// @matches issue_32374/index.html '//*[@class="item-left unstable deprecated module-item"]/span[@class="stab unstable"]' \
9fa01778 8// 'Experimental'
136023e0 9// @matches issue_32374/index.html '//*[@class="item-right docblock-short"]/text()' 'Docs'
a7813a04
XL
10
11// @has issue_32374/struct.T.html '//*[@class="stab deprecated"]' \
f9f354fc 12// '👎 Deprecated since 1.0.0: text'
136023e0 13// @has - '<code>test</code>&nbsp;<a href="https://issue_url/32374">#32374</a>'
476ff2be 14// @matches issue_32374/struct.T.html '//*[@class="stab unstable"]' \
0731742a
XL
15// '🔬 This is a nightly-only experimental API. \(test\s#32374\)$'
16/// Docs
a7813a04
XL
17#[rustc_deprecated(since = "1.0.0", reason = "text")]
18#[unstable(feature = "test", issue = "32374")]
19pub struct T;
476ff2be
SL
20
21// @has issue_32374/struct.U.html '//*[@class="stab deprecated"]' \
f9f354fc 22// '👎 Deprecated since 1.0.0: deprecated'
476ff2be 23// @has issue_32374/struct.U.html '//*[@class="stab unstable"]' \
8bb4bdeb 24// '🔬 This is a nightly-only experimental API. (test #32374)'
476ff2be
SL
25#[rustc_deprecated(since = "1.0.0", reason = "deprecated")]
26#[unstable(feature = "test", issue = "32374", reason = "unstable")]
27pub struct U;