rust/tests/rustdoc/deprecated-future-staged-api.rs

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

19 lines
889 B
Rust
Raw Normal View History

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