]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc/issue-32374.rs
Fix problem noticed in PR106859 with char -> u8 suggestion
[rust.git] / tests / 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"]/span[@class="stab deprecated"]' \
6 //      'Deprecated'
7 // @matches issue_32374/index.html '//*[@class="item-left"]/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"]/span' '👎'
12 // @has issue_32374/struct.T.html '//*[@class="stab deprecated"]/span' \
13 //      'Deprecated since 1.0.0: text'
14 // @hasraw - '<code>test</code>&nbsp;<a href="https://issue_url/32374">#32374</a>'
15 // @matches issue_32374/struct.T.html '//*[@class="stab unstable"]' '🔬'
16 // @matches issue_32374/struct.T.html '//*[@class="stab unstable"]' \
17 //     'This is a nightly-only experimental API. \(test\s#32374\)$'
18 /// Docs
19 #[deprecated(since = "1.0.0", note = "text")]
20 #[unstable(feature = "test", issue = "32374")]
21 pub struct T;
22
23 // @has issue_32374/struct.U.html '//*[@class="stab deprecated"]' '👎'
24 // @has issue_32374/struct.U.html '//*[@class="stab deprecated"]' \
25 //     'Deprecated since 1.0.0: deprecated'
26 // @has issue_32374/struct.U.html '//*[@class="stab unstable"]' '🔬'
27 // @has issue_32374/struct.U.html '//*[@class="stab unstable"]' \
28 //     'This is a nightly-only experimental API. (test #32374)'
29 #[deprecated(since = "1.0.0", note = "deprecated")]
30 #[unstable(feature = "test", issue = "32374", reason = "unstable")]
31 pub struct U;