mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
86 lines
2.9 KiB
Rust
86 lines
2.9 KiB
Rust
#![feature(staged_api)]
|
|
|
|
#![stable(feature = "rust1", since = "1.0.0")]
|
|
|
|
//@ has stability/index.html
|
|
//@ has - '//ul[@class="item-table"]/li[1]//a' AaStable
|
|
//@ has - '//ul[@class="item-table"]/li[2]//a' ZzStable
|
|
//@ has - '//ul[@class="item-table"]/li[3]//a' Unstable
|
|
|
|
#[stable(feature = "rust2", since = "2.2.2")]
|
|
pub struct AaStable;
|
|
|
|
#[unstable(feature = "test", issue = "none")]
|
|
pub struct Unstable {
|
|
//@ has stability/struct.Unstable.html \
|
|
// '//span[@class="item-info"]//div[@class="stab unstable"]' \
|
|
// 'This is a nightly-only experimental API'
|
|
//@ count stability/struct.Unstable.html '//span[@class="stab unstable"]' 0
|
|
pub foo: u32,
|
|
pub bar: u32,
|
|
}
|
|
|
|
#[stable(feature = "rust2", since = "2.2.2")]
|
|
pub struct ZzStable;
|
|
|
|
#[unstable(feature = "unstable", issue = "none")]
|
|
pub mod unstable {
|
|
//@ !hasraw stability/unstable/struct.StableInUnstable.html \
|
|
// '//span[@class="since"]'
|
|
//@ has - '//div[@class="stab unstable"]' 'experimental'
|
|
#[stable(feature = "rust1", since = "1.0.0")]
|
|
pub struct StableInUnstable;
|
|
|
|
#[stable(feature = "rust1", since = "1.0.0")]
|
|
pub mod stable_in_unstable {
|
|
//@ !hasraw stability/unstable/stable_in_unstable/struct.Inner.html \
|
|
// '//span[@class="since"]'
|
|
//@ has - '//div[@class="stab unstable"]' 'experimental'
|
|
#[stable(feature = "rust1", since = "1.0.0")]
|
|
pub struct Inner;
|
|
}
|
|
}
|
|
|
|
#[stable(feature = "rust2", since = "2.2.2")]
|
|
pub mod stable_later {
|
|
//@ has stability/stable_later/struct.StableInLater.html \
|
|
// '//span[@class="since"]' '2.2.2'
|
|
#[stable(feature = "rust1", since = "1.0.0")]
|
|
pub struct StableInLater;
|
|
|
|
#[stable(feature = "rust1", since = "1.0.0")]
|
|
pub mod stable_in_later {
|
|
//@ has stability/stable_later/stable_in_later/struct.Inner.html \
|
|
// '//span[@class="since"]' '2.2.2'
|
|
#[stable(feature = "rust1", since = "1.0.0")]
|
|
pub struct Inner;
|
|
}
|
|
}
|
|
|
|
#[stable(feature = "rust1", since = "1.0.0")]
|
|
pub mod stable_earlier {
|
|
//@ has stability/stable_earlier/struct.StableInUnstable.html \
|
|
// '//span[@class="since"]' '1.0.0'
|
|
#[doc(inline)]
|
|
#[stable(feature = "rust1", since = "1.0.0")]
|
|
pub use crate::unstable::StableInUnstable;
|
|
|
|
//@ has stability/stable_earlier/stable_in_unstable/struct.Inner.html \
|
|
// '//span[@class="since"]' '1.0.0'
|
|
#[doc(inline)]
|
|
#[stable(feature = "rust1", since = "1.0.0")]
|
|
pub use crate::unstable::stable_in_unstable;
|
|
|
|
//@ has stability/stable_earlier/struct.StableInLater.html \
|
|
// '//span[@class="since"]' '1.0.0'
|
|
#[doc(inline)]
|
|
#[stable(feature = "rust1", since = "1.0.0")]
|
|
pub use crate::stable_later::StableInLater;
|
|
|
|
//@ has stability/stable_earlier/stable_in_later/struct.Inner.html \
|
|
// '//span[@class="since"]' '1.0.0'
|
|
#[doc(inline)]
|
|
#[stable(feature = "rust1", since = "1.0.0")]
|
|
pub use crate::stable_later::stable_in_later;
|
|
}
|