rust/tests/rustdoc/deprecated-future-staged-ap...

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
889 B
Rust
Raw Permalink Normal View History

2022-04-08 11:44:55 +08:00
#![feature(staged_api)]
2023-10-16 03:53:37 +08:00
#![stable(feature = "deprecated_future_staged_api", since = "1.0.0")]
2022-04-08 11:44:55 +08:00
//@ has deprecated_future_staged_api/index.html '//*[@class="stab deprecated"]' \
2022-04-08 11:44:55 +08:00
// 'Deprecation planned'
//@ has deprecated_future_staged_api/struct.S1.html '//*[@class="stab deprecated"]' \
2022-04-08 11:44:55 +08:00
// 'Deprecating in 99.99.99: effectively never'
#[deprecated(since = "99.99.99", note = "effectively never")]
2023-10-16 03:53:37 +08:00
#[stable(feature = "deprecated_future_staged_api", since = "1.0.0")]
2022-04-08 11:44:55 +08:00
pub struct S1;
//@ has deprecated_future_staged_api/index.html '//*[@class="stab deprecated"]' \
2022-04-08 11:44:55 +08:00
// 'Deprecation planned'
//@ has deprecated_future_staged_api/struct.S2.html '//*[@class="stab deprecated"]' \
// 'Deprecating in a future version: literally never'
2022-04-08 11:44:55 +08:00
#[deprecated(since = "TBD", note = "literally never")]
2023-10-16 03:53:37 +08:00
#[stable(feature = "deprecated_future_staged_api", since = "1.0.0")]
2022-04-08 11:44:55 +08:00
pub struct S2;