]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc/rustc_deprecated-future.rs
Rollup merge of #93755 - ChayimFriedman2:allow-comparing-vecs-with-different-allocato...
[rust.git] / src / test / rustdoc / rustc_deprecated-future.rs
1 #![feature(staged_api)]
2
3 #![stable(feature = "rustc_deprecated-future-test", since = "1.0.0")]
4
5 // @has rustc_deprecated_future/index.html '//*[@class="stab deprecated"]' \
6 //      'Deprecation planned'
7 // @has rustc_deprecated_future/struct.S1.html '//*[@class="stab deprecated"]' \
8 //      'Deprecating in 99.99.99: effectively never'
9 #[rustc_deprecated(since = "99.99.99", reason = "effectively never")]
10 #[stable(feature = "rustc_deprecated-future-test", since = "1.0.0")]
11 pub struct S1;
12
13 // @has rustc_deprecated_future/index.html '//*[@class="stab deprecated"]' \
14 //      'Deprecation planned'
15 // @has rustc_deprecated_future/struct.S2.html '//*[@class="stab deprecated"]' \
16 //      'Deprecating in a future Rust version: literally never'
17 #[rustc_deprecated(since = "TBD", reason = "literally never")]
18 #[stable(feature = "rustc_deprecated-future-test", since = "1.0.0")]
19 pub struct S2;